PHP notice

PHP notice

Trying to get property of non-object

/var/www/html/protected/controllers/DetailController.php(70)

58             if($tuanfirstcal==null){
59                 $this->render('404',array('msg'=>'哈哈..该旅游路线这天不出团哦,请选择其它日期吧!'));
60                 exit;
61             }
62             $tempCount = $this->getSurplusCount($cal_id);//已经支付过的人数
63             $Calcount = ($tuanfirstcal->number)-$tempCount;
64         }else{
65             /* if($saleflag){
66                 $tuanfirstcal = $sales;
67             }else{ */
68                 $tuanfirstcal = $this->getFirstCal($tid);
69             /* } */
70             $cal_id= $tuanfirstcal->id;
71             if($tuanfirstcal!=null){
72                 $tempCount = $this->getSurplusCount($tuanfirstcal->id);
73                 $Calcount = ($tuanfirstcal->number)-$tempCount;
74             }
75         }
76         
77         //分配该产品所有今天之后的出团信息
78         if (!isset($_GET['page'])) {
79             $page=0;
80         }else{
81             $page=($_GET['page']-1)*10;
82         }

Stack Trace

#7
+
 /var/www/html/index.php(3273): CApplication->run()
3268 defined('YII_DEBUG') or define('YII_DEBUG',true);
3269 // specify how many levels of call stack should be shown in each log message
3270 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
3271 
3272 require_once($yii);
3273 Yii::createWebApplication($config)->run();
2023-02-05 08:22:05 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.15