PHP warning

Creating default object from empty value

/home/zakonbase/zakonbase.ru/protected/controllers/content/ActionBase.php(23)

11             $aId = Content::getId($_SERVER['REQUEST_URI']);
12             $id = $aId['base'];
13         }
14         $aCard = Content::getCard($id);
15         if (empty($aCard))
16             Yii::app()->controller->redirect('/');
17         $title = Content::getTitleBase($id);
18         if (empty($title))
19             $title = $aCard['title'];
20         Yii::app()->controller->pageTitle = $title;
21         Yii::app()->controller->pageDescription = $title;
22         $oText = DocumentText::model()->findByPk($id);
23         $oText->dt_text = preg_replace('/([А-Я]{1}[а-я]{1})/u', ' $1', $oText->dt_text);
24         $oText->dt_text = preg_replace('/\s\s+/', ' ', $oText->dt_text);
25         $aTree = Content::getTreeBase($id);
26         $print = Yii::app()->request->getQuery('print');
27         $pdf = Yii::app()->request->getQuery('pdf');
28         $rtf = Yii::app()->request->getQuery('rtf');
29         if ($print) {
30             Yii::app()->controller->layout = '/layouts/print';
31             Yii::app()->controller->render('/content/base_print', array(
32                 'aCard' => $aCard,
33                 'oText' => $oText,
34                 'aTree' => $aTree,
35             ));

Stack Trace

#9
+
 /home/zakonbase/zakonbase.ru/www/index.php(19): CApplication->run()
14 //}
15 
16 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
17 
18 require_once($yii);
19 Yii::createWebApplication($config)->run();
2024-03-28 13:25:25 nginx/1.14.0 Yii Framework/1.1.10