PHP notice

Undefined offset: 0

/home/uu001/uu.edu.ua/www/protected/modules/edu/views/front/eduunit/region.php(75)

63         </script>
64     <?php endforeach; ?>
65     <script>
66         var init_latitude = <?= $region->latitude ?>;
67         var init_longitude = <?= $region->longitude ?>;
68     </script>
69 </div>
70 <br>
71 <div class="news-list">
72     <?php $this->widget('news.widgets.NewsEduRegioLastNews', array('catagoryId' => $catagoryId)); ?>
73 </div>
74 <div class="title h">
75     <a href="<?= Yii::app()->createUrl('/news/news/edu', array('alias' => $units[0]->alias)); ?>" class="dotted"><?= Yii::t('main', 'Переглянути всі події') . ' ' . $units[0]->title; ?></a>
76 </div>

Stack Trace

#4
+
 /home/uu001/uu.edu.ua/www/protected/modules/edu/controllers/front/EduunitController.php(69): CController->render("region", array("region" => EduRegion, "units" => array(), "faculty" => array()))
64 
65         $this->render('region', array(
66             'region' => $region,
67             'units' => $units,
68             'faculty' => $faculty,
69         ));
70     }
71 
72     /**
73      * Displays a particular model.
74      * @param string $alias the alias of the model to be displayed
#14
+
 /home/uu001/uu.edu.ua/www/protected/components/WebApplicationOfficeBehavior.php(50): CApplication->run()
45         $this->onModuleCreate(new CEvent($this->owner));
46 
47         register_shutdown_function(array($this, 'onShutdownHandler'));
48         
49         
50         $this->owner->run(); // Run application.
51 
52         if (!Yii::app()->request->isAjaxRequest)
53         {
54             Yii::app()->user->setState('__returnUrl', Yii::app()->request->requestUri);
55         }
#17
+
 /home/uu001/uu.edu.ua/www/index.php(26): CComponent->__call("runOffice", array("front"))
21 defined('YII_DEBUG') or define('YII_DEBUG', true);
22 // specify how many levels of call stack should be shown in each log message
23 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
24 
25 require_once($yii);
26 Yii::createWebApplication($config)->runOffice('front');
27 
28 
2024-03-28 20:26:51 Apache Yii Framework/1.1.15