PHP notice

Undefined offset: 0

/var/www/smcentroa.com/public_html/web/protected/modules/Frontend/views/objetivoSocial/_eventos.php(4)

01 <!-- Año -->
02 <?php
03 $anioActual = '';
04 $mesActual = $eventos[0]['mes'];
05 $cont = 0;
06 //      die($mesActual);
07 ?>
08 
09 <?php foreach ($eventos as $evento): ?>
10 
11 
12     <?php if ($evento['anio'] != $anioActual): ?>
13         <?php $anioActual = $evento['anio']; ?>
14         <?php $mesActual = $evento['mes']; ?>
15 
16         <div class="col-md-12">

Stack Trace

#3
+
 /var/www/smcentroa.com/public_html/web/protected/modules/Frontend/views/objetivoSocial/index.php(81): CController->renderPartial("_eventos", array("eventos" => array()))
76 
77       </div>
78       
79       <div id="eventos">
80         <!--PARTIAL EVENTOS-->
81         <?php echo $this->renderPartial('_eventos', array('eventos'=>$eventos)); ?>
82       </div>
83 
84     </div>
85   </div>
86 
#8
+
 /var/www/smcentroa.com/public_html/web/protected/modules/Frontend/controllers/ObjetivoSocialController.php(17): CController->render("index", array("anios" => array(2015 => "2015"), "categorias" => array(CategoriaSocial, CategoriaSocial, CategoriaSocial, CategoriaSocial, ...), "eventos" => array()))
12             
13             $categorias = CategoriaSocial::model()->findAll();
14             
15             $eventos = ObjetivoSocial::eventosActuales($texto, $anio, $categ);
16 
17             $this->render('index', array('anios'=>$arrAnios, 'categorias'=>$categorias, 'eventos'=>$eventos));
18 
19     }
20         
21         
22         public function actionEventosAjax()
#16
+
 /var/www/smcentroa.com/public_html/web/index.php(22): CApplication->run()
17 defined('YII_DEBUG') or define('YII_DEBUG',true);
18 // specify how many levels of call stack should be shown in each log message
19 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
20 
21 require_once($yii);
22 Yii::createWebApplication($config)->run();
2021-08-18 13:32:35 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.15