PHP notice

Trying to get property 'game_id' of non-object

/home/getravish/public_html/protected/controllers/GameController.php(425)

413             }
414             
415             $game = Game::model()->find(array('condition'=>'game_name like "'.trim($game_name[0]).'%"'));
416             // echo "<pre>";
417             // print_r($game);
418             // exit;
419         }
420         else
421         {
422             $game = Game::model()->findByPk($_REQUEST['game_id']);
423         }
424         
425         $top_review = MemberReview::model()->findAll(array('condition'=>'is_abuse="N" and parent_id='.$game->game_id.' and category="G" and type="W" and active_status="S" and status="1" and review_status="A"','select'=>'member_id,review','order'=>'total_like desc','limit'=>1));
426         $review_video = array();
427         $review_images = array();
428         
429         $this->getSeoMeta($game->game_id,'G');
430         
431         if(!empty($game))
432         {
433             if(!empty($_REQUEST['sort_order']))
434             {
435                 if($_REQUEST['sort_order']=='asc' || $_REQUEST['sort_order']=='desc')
436                 {
437                     $sort_order = 'rating '.$_REQUEST['sort_order'];

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-28 17:04:56 Apache Yii Framework/1.1.15