PHP notice

Undefined offset: 1

/home/www/ecelebrity.ru/protected/extensions/personaInfo/PersonaInfo.php(95)

083             
084         }
085         if ($this->model->child and $this->model->child !== 0) {
086             echo '<div class="row-bl">Дети: ' . $this->model->child . '</div>';
087         } else {
088             
089         }
090         if ($this->model->count_album and $this->model->count_album !== 0) {
091             echo '<div class="row-bl">Дискография: <span><b><a alt="Дискография" class="colorbox1" href="#inline1">' . $this->model->count_album . '</a></b><ul>';
092             $myMusic = explode(')', $this->model->music);
093             $iCount = count($myMusic) - 1;
094             for ($i = 0; $i < 2; $i++) {
095                 echo '<li>' . $myMusic[$i] . ')' . '</li>';
096             }
097             echo '</ul></span></div>';
098         } else {
099             
100         }
101         if ($this->model->count_film and $this->model->count_film !== 0) {
102 
103             echo '<div class="row-bl">Фильмография: <span><b><a alt="Фильмография" class="colorbox2" href="#inline2">' . $this->model->count_film . '</a></b><ul>';
104             $myFilms = explode(')', $this->model->films);
105             $nCount = count($myFilms) - 1;
106             for ($n = 0; $n < 2; $n++) {
107                 echo '<li>' . $myFilms[$n] . ')' . '</li>';

Stack Trace

#0
+
 /home/www/ecelebrity.ru/protected/extensions/personaInfo/PersonaInfo.php(121): PersonaInfo->viewInfo()
116     public function init() {
117         parent::init();
118     }
119 
120     public function run() {
121         $this->viewInfo();
122     }
123 
124 }
125 ?>
126 
#2
+
 /home/www/ecelebrity.ru/protected/views/persona/view.php(7): CBaseController->widget("application.extensions.personaInfo.PersonaInfo", array("model" => Persona))
02     <?php
03     $this->widget('application.extensions.viewCounter.ViewCounter', array('write' => true, 'id' => $model->id, 'category' => 2));
04     ?>    
05     <?php $this->widget('application.extensions.personaCrumbs.PersonaCrumbs', array('personaId' => $model->id, 'personaName' => $model->name)); ?> 
06     <div class="person-block">
07         <?php $this->widget('application.extensions.personaInfo.PersonaInfo', array('model' => $model)); ?> 
08         <div class="clear-bl"></div>
09 
10         <?php $this->widget('application.extensions.rattingPer.RattingPer', array('id' => $model->id, 'type' => '1')); ?>
11         <script>
12             // $('.ratting').live('click',function(){
#7
+
 /home/www/ecelebrity.ru/protected/controllers/PersonaController.php(93): CController->render("view", array("model" => Persona, "gallery" => array(Images, Images, Images, Images, ...), "images" => array(Images, Images, Images, Images, ...), "video" => array()))
88         $this->render('view', array(
89             'model' => $model,
90             'gallery' => $gallery,
91             'images' => $images,
92             'video' => $video,
93         ));
94     }
95 
96     // На всякий случай, для совместимости со старым кодом.
97     // @todo: Подумать, может убрать нафиг.
98     public function actionView($id) {
2024-03-29 13:57:08 nginx/1.8.1 Yii Framework/1.1.10