PHP notice

Undefined offset: 0

/var/www/wwk/data/www/ultivox.ws/protected/views/musicFiles/view.php(23)

11 
12 $cs = Yii::app()->clientScript;
13 $cs->registerScriptFile('/jplayer/js/jquery.jplayer.min.js');
14 $cs->registerScriptFile('/jplayer/js/jquery.transform2d.js');
15 $cs->registerScriptFile('/jplayer/js/jquery.grab.js');
16 $cs->registerScriptFile('/jplayer/js/mod.csstransforms.min.js');
17 $cs->registerScriptFile('/jplayer/js/circle.player.js');
18 
19 if ($playList!=null)
20 {
21     $count = count($playList->rawData);
22     $random = rand(0,$count-1);
23     $back = $playList->rawData[$random]['path'];
24     $backName = $playList->rawData[$random]['song'];
25 }
26 else
27 {
28     $count = 0;
29     $random = 0;
30     $back = null;
31     $backName = null;
32 }
33 
34 
35 

Stack Trace

#4
+
 /var/www/wwk/data/www/ultivox.ws/protected/controllers/MusicFilesController.php(92): CController->render("view", array("model" => MusicFiles, "menuItems" => array(array("label" => "Smooth Jazz", "url" => "87"), array("label" => "Nu Disco", "url" => "86"), array("label" => "Lounge", "url" => "85"), array("label" => "Latin Pop", "url" => "84"), ...), "playList" => CArrayDataProvider, "toMac" => "/index.php/musicFiles/viewmcd/46"))
87         $this->render('view',array(
88             'model'=>$model,
89             'menuItems'=> $menu,
90             'playList'=>$pl,
91             'toMac'=>$go_mcd,
92         ));
93     }
94 
95     public function actionViewmcd($id)
96     {
97         if(Yii::app()->request->isAjaxRequest)
#19
+
 /var/www/wwk/data/www/ultivox.ws/index.php(19): CApplication->run()
14 
15 // we need to set this to UTC, regardless of default timezone 
16 // which is only for display. UTC is what timestamps etc. are using.
17 Yii::app()->setTimeZone("UTC");
18 
19 $app->run();
2024-03-28 09:41:30 Apache/2.4.29 (Ubuntu) Yii Framework/1.1.15