PHP notice

Undefined index: metro

/home/httpd/vhosts/gotodance.ru/httpdocs/protected/views/school/item.php(151)

139                     <?if(!empty($this->page['property']['email']['value'])):?>
140 
141                         <tr>
142 
143                             <td class="icon email"><div></div></td>
144 
145                             <td><?=$this->page['property']['email']['value']?></td>
146 
147                         </tr>
148 
149                     <?endif?>
150 
151                     <?foreach($this->page['property']['metro']['value'] as $k => $metro):?>
152 
153                         <tr>
154 
155                             <td class="icon <?=($k == 0 ? 'metro' : '')?>"></td>
156 
157                             <td><?=$metro?></td>
158 
159                         </tr>
160 
161                     <?endforeach?>
162 
163                 </table>

Stack Trace

#4
+
 /home/httpd/vhosts/gotodance.ru/httpdocs/protected/controllers/SchoolController.php(330): CController->render("item", array("state" => false, "lastReviewList" => array(), "photoAlbum" => false, "videoAlbum" => false))
325         $this->render('item', array(
326             'state'   => $cSate,
327             'lastReviewList' => Libs::getLastReviewList($this->page['id']),
328             'photoAlbum' => $this->getMainAlbum(1),
329             'videoAlbum' => $this->getMainAlbum(2),
330         ));
331     }
332 
333     /**
334      * Возврвщвет обложку для альбома
335      *
#14
+
 /home/httpd/vhosts/gotodance.ru/httpdocs/index.php(54): CApplication->run()
49 defined('YII_DEBUG') or define('YII_DEBUG',true);
50 // specify how many levels of call stack should be shown in each log message
51 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
52 
53 require_once($yii);
54 Yii::createWebApplication($config)->run();
2024-03-19 13:16:51 Apache Yii Framework/1.1.14