PHP notice

Undefined offset: 0

/home/u667379955/domains/guiadelenvase.com.ar/public_html/protected/views/guia/rubros.php(251)

239                                     if($firstLetter === null){
240 
241                                         $firstLetter = substr($rubro->nombre, 0,1);
242 
243                                     }
244 
245                                     if ($sector != "")
246 
247                                         echo '<li><a href="' . $rubro->getURL($leSector) . '" class="link-rubro" rubro="'.$rubro->slug.'" sector="'.$leSector->id.'">'.$rubro->nombre.'&nbsp;<span>('.$rubro->empresas_por_rubro.')</span></a></li>';
248 
249                                     else
250 
251                                         echo '<li><a href="' . $rubro->getURL($rubro->sectores[0]->sector) . '" class="link-rubro" rubro="'.$rubro->slug.'" sector="' . $rubro->sectores[0]->id_sector .'">'.$rubro->nombre.'&nbsp;<span>('.$rubro->empresas_por_rubro.')</span></a></li>';
252 
253                                 }
254 
255                             ?>
256 
257 
258 
259                         </div>
260 
261                     </div>
262 
263 

Stack Trace

#4
+
 /home/u667379955/domains/guiadelenvase.com.ar/public_html/protected/controllers/GuiaController.php(62): CController->render("rubros", array())
57 
58         if(isset($_GET['orden'])){
59             $filtros['orden'] = $_GET['orden'];
60         }
61 
62         $this->render('rubros', $filtros);
63     }
64 
65     public function actionNota(){
66         $filtros = array();
67         if(isset($_GET['titulo'])){
#17
+
 /home/u667379955/domains/guiadelenvase.com.ar/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 10:11:30 LiteSpeed Yii Framework/1.1.15