PHP notice

Only variables should be passed by reference

/home/GIR/buggy-motor.ru/themes/buggy-2014/views/post/site/index.php(55)

43 </div>
44 <?php
45     $output = '';
46     foreach ($models as $model):
47 
48         $imagesData = Yii::app()->basePath . '/../files/pictureBox/posts/' . $model->id . '/data.php';
49         $image = '';
50         $itemLink = array('/post/site/view/id/'.$model->id.'/title/'.$model->title_t );
51 
52 
53         if (file_exists($imagesData)) {
54             $imagesArray = require($imagesData);
55             $image = array_shift(array_shift($imagesArray));
56 
57             if (is_array($image) && (count($image)) > 0)
58                 $imgHtml = '                    
59 
60                                                         ' .  CHtml::link('<img src="' . $image['small'] . '" />', $itemLink) . '
61 
62                                                 ';
63             else
64                 $imgHtml = '';
65         } else {
66             $imgHtml = '';
67         }

Stack Trace

#4
+
 /home/GIR/buggy-motor.ru/protected/modules/post/controllers/SiteController.php(129): CController->render("index", array("models" => array(Posts), "pages" => CPagination, "tagModel" => PostsTags, "tag_id" => "0", ...))
124         $this->render('index', array(
125             'models' => $models,
126             'pages' => $pages,
127             'tagModel' => $tagModel,
128             'tag_id' => $id,
129             'tags' => $tags
130         ));
131     }
132 
133     /**
134      * Manages all models.
#14
+
 /home/GIR/buggy-motor.ru/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-28 11:51:15 nginx/1.24.0 Yii Framework/1.1.30-dev