PHP notice

Trying to get property 'b_title' of non-object

/var/www/admin/www/pelagea-kukla.ru/site/protected/controllers/BundleController.php(202)

190     }
191 
192     /**
193      * @param $url
194      * view bundle
195      */
196     public function actionView($url)
197     {
198 
199         $newComment = new Comment;
200         $oBundleModel = Bundle::model()->findByAttributes(array('b_url'=>$url));
201         
202         $this->pageTitle = $oBundleModel->b_title;
203         $oBundleModel->b_view_count = $oBundleModel->b_view_count+1;
204         $oBundleModel->save();
205 
206         if(isset($_POST['Comment']) && !Yii::app()->user->isGuest){
207             $newComment->attributes = $_POST['Comment'];
208             if($newComment->validate()){
209                 $newComment->uid = Yii::app()->user->id;
210                 $newComment->c_created = time();
211                 $newComment->save();
212 
213                 $countComments = $newComment->countBunndleComnents($newComment->bid);
214                 $newComment->updateBundleCommentCount($newComment->bid,$countComments);

Stack Trace

#9
+
 /var/www/admin/www/pelagea-kukla.ru/site/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 17:24:44 Apache/2.4.56 (Debian) Yii Framework/1.1.13