PHP notice

Undefined offset: 0

/home/i3data/public_html/tce/protected/controllers/SiteController.php(482)

470                         $tLogo = Parametros::findParametro($data)['C_VALOR'];
471                         $xSector='';
472                         $xGrupo='';
473                         $xEntidad='';
474                     }   
475                 }
476             } else {
477                     $sql = " select SEC_X_SECTOR X_SECTOR, GRU_X_GRUPO X_GRUPO, X_ENTIDAD X_ENTIDAD, T_LOGO 
478                                    from entidades 
479                                    where X_ENTIDAD = :xEntidad
480                                   ";
481                     $list = Yii::app()->db->createCommand($sql)->bindValue('xEntidad', $xEntidad)->queryAll();  
482                     $tLogo = $list[0]['T_LOGO'];
483             } 
484         }
485 }

Stack Trace

#0
+
 /home/i3data/public_html/tce/protected/controllers/SiteController.php(285): SiteController->cargaValores("", "", "", "")
280             $lRrss = Tools::recuperaParametroRequest('lRrss', false);
281             $tLogo = '';
282             
283             $lEntidadSeleccionada = false;
284             
285             $this->cargaValores($xSector, $xGrupo, $xEntidad, $tLogo);
286 
287             if ($xSector || $xEntidad) {
288                 $lEntidadSeleccionada = true;
289             }
290 
#8
+
 /home/i3data/public_html/tce/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-29 16:43:53 Apache Yii Framework/1.1.25