PHP warning

array_merge(): Argument #2 is not an array

/var/www/www-root/data/www/baltelectron.ru/protected/controllers/SiteController.php(48)

36 
37     public function actionCategorypage() {
38       $this->layout = 'site';
39       $m = new CCatalogModule('catalog');
40       $this->params['content'] = $m->Execute(array('mode'=>CCatalogModule::MODE_CATEGORY, 'reference'=>$_REQUEST['hurl']));
41       $this->params = array_merge($this->params, $m->getSEO());
42       $this->render('PageView', $this->params);
43     }
44 
45     public function actionGoodspage() {
46       $this->layout = 'site';
47       $this->params['content'] = FC_RenderGoodsCard(str_replace('|', '/', $_REQUEST['hurl']), $seo);
48       $this->params = array_merge($this->params, $seo);
49       $this->render('PageView', $this->params);
50     }
51 
52     public function actionSearchpage() {
53       $m = new CCatalogModule('catalog');
54       if(isset($_REQUEST['brand'])) {
55         $this->params['content'] = $m->Execute(array('mode'=>CCatalogModule::MODE_BRAND, 'reference'=>$_REQUEST['brand']));
56       } elseif(isset($_REQUEST['text'])) {
57         $this->params['content'] = $m->Execute(array('mode'=>CCatalogModule::MODE_SEARCH_RESULT, 'reference'=>$_REQUEST['text']));
58       }
59       $this->render('PageView', $this->params);
60     }

Stack Trace

#0
+
 /var/www/www-root/data/www/baltelectron.ru/protected/controllers/SiteController.php(48): array_merge(array("content" => "Ошибка: карточка товара не найдена ..."), null)
43     }
44 
45     public function actionGoodspage() {
46       $this->layout = 'site';
47       $this->params['content'] = FC_RenderGoodsCard(str_replace('|', '/', $_REQUEST['hurl']), $seo);
48       $this->params = array_merge($this->params, $seo);
49       $this->render('PageView', $this->params);
50     }
51 
52     public function actionSearchpage() {
53       $m = new CCatalogModule('catalog');
#9
+
 /var/www/www-root/data/www/baltelectron.ru/index.php(18): CApplication->run()
13   require_once(dirname(__FILE__).'/protected/classes/useragent.lib.php');
14   require_once(dirname(__FILE__).'/protected/classes/phpmailer/class.phpmailer.php');
15   require_once(dirname(__FILE__).'/protected/classes/phpexcel/PHPExcel.php');
16 
17   // create a Web application instance and run
18   Yii::createWebApplication(dirname(__FILE__).'/protected/config/config.php')->run();
2024-03-28 16:22:13 Apache/2.2.15 (CentOS) Yii Framework/1.1.17