PHP warning

Creating default object from empty value

/www/wwwroot/ebiao.com/protected/controllers/SiteController.php(60)

48         $this->render($this->temp.'index', array('user'=>$user, 'categorys'=>$categorys, 'categoryall'=>$categoryall, 'texuan'=>$texuan, 'floor'=>$floor, 'siteinfo'=>$siteinfo, 'qianggou'=>$qianggou));
49     }
50     /*
51      * 商标详情
52      */
53     public function actionBrandDetail(){
54         $id = intval($_GET['id']);
55         $brand = Brand::model()->findByPk($id);
56         if (in_array($brand->userid, Brand::$buzheng_userids)){
57             $this->redirect(url("siste/error"));
58         }
59         $this->pageTitle = $brand->name."商标转让-商标交易,第".$brand->category_id."类商标转让,商标价格,商标买卖-商标交易市场-易标网";
60         $brand->viewcount ++ ;
61         $brand->save();
62         //更新浏览记录
63         if (user()->id){
64             History::updateHistory($id);
65             $historys = History::getHistorys();
66         }else{
67             $cookieHistory = Yii::app()->request->cookies["history"];
68             $historArr = $cookieHistory ? unserialize($cookieHistory) : array();
69             array_push($historArr, $id);
70             $historArr = array_unique($historArr);
71             if (count($historArr)>5){
72                  array_shift($historArr);

Stack Trace

#7
+
 /www/wwwroot/ebiao.com/public/index.php(23): CApplication->run()
18 require_once($yii);
19 require_once($short);
20 
21 $app = Yii::createWebApplication($config);
22 mb_internal_encoding(app()->charset);
23 $app->run();
2024-03-28 23:31:45 nginx/1.16.0 Yii Framework/1.1.17