PHP notice

Undefined offset: 0

/var/www/wwk/data/www/ultivox.ws/protected/views/musicFiles/viewmcd.php(26)

14 $cs->registerCssFile('/aplayer/lib/circle-player/skin/circle.player.css');
15 $cs->registerScriptFile('/aplayer/lib/jquery.min.js');
16 $cs->registerScriptFile('/aplayer/dist/jplayer/jquery.jplayer.min.js');
17 $cs->registerScriptFile('/aplayer/lib/circle-player/js/jquery.transform2d.js');
18 $cs->registerScriptFile('/aplayer/lib/circle-player/js/jquery.grab.js');
19 $cs->registerScriptFile('/aplayer/lib/circle-player/js/mod.csstransforms.min.js');
20 $cs->registerScriptFile('/aplayer/lib/circle-player/js/circle.player.js');
21 
22 if ($playList!=null)
23 {
24     $count = count($playList->rawData);
25     $random = rand(0,$count-1);
26     $back = $playList->rawData[$random]['path'];
27     $back_m4a = str_replace(".ogg", ".mp3",$back);
28     $back_m4a = str_replace("/music", "/m4a",$back_m4a);
29     $backName = str_replace(".ogg", "",$playList->rawData[$random]['song']);
30 }
31 else
32 {
33     $count = 0;
34     $random = 0;
35     $back = null;
36     $backName = null;
37 }
38 

Stack Trace

#4
+
 /var/www/wwk/data/www/ultivox.ws/protected/controllers/MusicFilesController.php(131): CController->render("viewmcd", 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))
126         $_SESSION['menu']=$menu;
127         $this->render('viewmcd',array(
128             'model'=>$model,
129             'menuItems'=> $menu,
130             'playList'=>$pl,
131         ));
132     }
133     /**
134      * Creates a new model.
135      * If creation is successful, the browser will be redirected to the 'view' page.
136      */
#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 15:36:31 Apache/2.4.29 (Ubuntu) Yii Framework/1.1.15