PHP warning

array_reverse() expects parameter 1 to be array, null given

/var/www/u1623117/data/www/dental-group.ru/protected/controllers/frontend/PostsController.php(198)

186             $pages->pageSize = $limit;
187             $pages->applyLimit($criteria);
188 //
189             $criteria = new CDbCriteria;
190             $criteria->select = '*';
191             $criteria->condition = 'status=:status and pid=:pid';
192             $criteria->params = array('status' => 1, 'pid' => $id_cat);
193             $criteria->order="sort";
194             $catList = Catalog_categorie::model()->findAll($criteria);
195             $array_result=array();
196             $array_result=$catalog->getBreadCatalog2($array_result,$catInfo->id);
197             $this->breadcrumbs=['Каталог'=>'/catalog/'];
198             $array_result=array_reverse($array_result,TRUE);
199             $this->breadcrumbs=array_merge($this->breadcrumbs,$array_result);
200             $name_cat=$catInfo->name;
201             if (count($arrayChildCat)==1) {
202                 $this->render('catList',
203                     array("catList" => $catList, "elems" => $arrayChildElem, "pages" => $pages, "catInfo" => $catInfo,'name_cat'=>$name_cat));
204             }else{
205                 $this->layout="catalogCategorie";
206                 $this->render('catListCategorie',
207                     array("catList" => $catList, "elems" => $arrayChildElem, "pages" => $pages, "catInfo" => $catInfo,'name_cat'=>$name_cat));
208             }
209         }
210 

Stack Trace

#0
+
 /var/www/u1623117/data/www/dental-group.ru/protected/controllers/frontend/PostsController.php(198): array_reverse(null, true)
193             $criteria->order="sort";
194             $catList = Catalog_categorie::model()->findAll($criteria);
195             $array_result=array();
196             $array_result=$catalog->getBreadCatalog2($array_result,$catInfo->id);
197             $this->breadcrumbs=['Каталог'=>'/catalog/'];
198             $array_result=array_reverse($array_result,TRUE);
199             $this->breadcrumbs=array_merge($this->breadcrumbs,$array_result);
200             $name_cat=$catInfo->name;
201             if (count($arrayChildCat)==1) {
202                 $this->render('catList',
203                     array("catList" => $catList, "elems" => $arrayChildElem, "pages" => $pages, "catInfo" => $catInfo,'name_cat'=>$name_cat));
#8
+
 /var/www/u1623117/data/www/dental-group.ru/protected/behaviors/WebApplicationEndBehavior.php(22): CApplication->run()
17         $this->_endName = $name;
18         
19         // обрабатываем событие создания модуля
20         $this->onModuleCreate = array($this, 'changeModulePaths');
21         $this->onModuleCreate(new CEvent ($this->owner));
22         $this->owner->run();        
23     }
24     
25     // обработчик события onModuleCreate
26     public function onModuleCreate($event)
27     {
#11
+
 /var/www/u1623117/data/www/dental-group.ru/index.php(14): CComponent->__call("runEnd", array("frontend"))
09 defined('YII_DEBUG') or define('YII_DEBUG', true);
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
11 // подключаем фреймворк
12 require_once($yii);
13 // стартуем приложение с помощью нашего WebApplicaitonEndBehavior, указав ему, что нужно загрузить фронтенд
14 Yii::createWebApplication($config)->runEnd('frontend');
2024-03-19 13:45:40 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/5.3.7 Yii Framework/1.1.14