PHP notice

Trying to get property 'music_id' of non-object

/home/getravish/public_html/protected/controllers/MusicController.php(369)

357             {
358                 $album = explode("(",$_REQUEST['album']);
359                 $share_review_id = '';
360             }
361             
362             $music = Music::model()->find(array('condition'=>'album like "'.trim($album[0]).'%"'));
363         }
364         else
365         {
366             $music = Music::model()->findByPk($_REQUEST['music_id']);
367         }
368         
369         $top_review = MemberReview::model()->findAll(array('condition'=>'is_abuse="N" and parent_id='.$music->music_id.' and category="MU" and type="W" and active_status="S" and status="1" and review_status="A"','select'=>'member_id,review','order'=>'total_like desc','limit'=>1));
370         
371         $review_video = array();
372         $review_images = array();
373         
374         $this->getSeoMeta($music->music_id,'MU');
375         
376         if(!empty($music))
377         {
378             if(!empty($_REQUEST['sort_order']))
379             {
380                 if($_REQUEST['sort_order']=='asc' || $_REQUEST['sort_order']=='desc')
381                 {

Stack Trace

#7
+
 /home/getravish/public_html/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-19 08:52:09 Apache Yii Framework/1.1.15