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(250)

238                 $this->pageTitle .= ' - ' . $catalogInfo->title_seo;
239             } else {
240                 $this->pageTitle .= ' - ' . $catalogInfo->name;
241             }
242             $this->pageTitle .= ' - ' . Yii::app()->name;
243             
244             $this->description = $elemInfo->description_seo;
245             $this->keywords = $elemInfo->keywords_seo;
246 
247             $array_result=array();
248             $array_result=$catalog->getBreadCatalog2($array_result,$elemInfo->pid);
249             $this->breadcrumbs=['Каталог'=>'/catalog/'];
250             $array_result=array_reverse($array_result,TRUE);
251             $this->breadcrumbs=array_merge($this->breadcrumbs,$array_result);
252 
253             $this->render('catElem', array("elemInfo" => $elemInfo));
254         } else {
255             header("HTTP/1.0 404 Not Found");
256             $this->render('error');
257         }
258 
259     }
260 
261     public function actionMap()
262     {

Stack Trace

#0
+
 /var/www/u1623117/data/www/dental-group.ru/protected/controllers/frontend/PostsController.php(250): array_reverse(null, true)
245             $this->keywords = $elemInfo->keywords_seo;
246 
247             $array_result=array();
248             $array_result=$catalog->getBreadCatalog2($array_result,$elemInfo->pid);
249             $this->breadcrumbs=['Каталог'=>'/catalog/'];
250             $array_result=array_reverse($array_result,TRUE);
251             $this->breadcrumbs=array_merge($this->breadcrumbs,$array_result);
252 
253             $this->render('catElem', array("elemInfo" => $elemInfo));
254         } else {
255             header("HTTP/1.0 404 Not Found");
#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 05:36:11 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