PHP notice

Undefined offset: 153

/home/site/aite/protected/controllers/ProductController.php(143)

131             {
132                 if(!empty($thumb_image['doc_url']) && $k==0)
133                 {
134                     $firstImg = Yii::app()->qiniu->domain.'/'.substr($thumb_image['doc_url'],4);
135                 }
136             }
137         }
138 
139         $main_image = empty($main_image) ? '' : $main_image;
140 
141         //分类信息
142         $categorys = $this->productsCatMap();
143         $son_cat = $categorys[$product['cat_id']];
144         $parent_cat = $categorys[$son_cat['parentid']];
145 //        print_r($main_image);
146 //        var_dump($thumb_images);exit;
147 //        if(empty($firstImg))
148 //        {
149 //            $firstImg = '/style/aite/Src/img/demo.jpg';
150 //        }
151         $this->render('detail',array(
152             'product' => $product,
153             'parent_cat' => $parent_cat,
154             'son_cat' => $son_cat,
155             'main_image' => $main_image,

Stack Trace

#9
+
 /home/site/aite/index.php(49): CApplication->run()
44 $app = Yii::createWebApplication($config);
45 if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0') === false) {
46     $app->attachBehavior('WebBehavior', 'application.behavior.WebBehavior');
47 }
48 
49 $app->run();
2024-03-29 17:35:43 nginx/1.10.3 Yii Framework/1.1.14