PHP warning

Undefined array key 0

/home/uridmedi/public_html/protected/controllers/SiteController.php(287)

275                 'limit' => 10
276             ));
277             if (isset($_REQUEST["newsslideid"])) {
278                 $newsslideid = $_REQUEST["newsslideid"];
279                 for ($i = 0; $i <= count($articleSlidesData) - 1; $i++) {
280                     if ($articleSlidesData[$i]->articleslideid == $newsslideid)
281                         $newsslideindex = $i;
282                 }
283                 if ($newsslideindex == -1) {
284                     throw new CHttpException(404, 'The requested page does not exist.');
285                 }
286             } else {
287                 $newsslideid = $articleSlidesData[0]->articleslideid;
288                 $newsslideindex = 0;
289             }
290         }
291 
292         if ($articleDetailData === null || $articleDetailData->statusid == 4)
293             throw new CHttpException(404, 'The requested page does not exist.');
294 
295         Yii::app()->db->createCommand("UPDATE articles SET hitcounts = hitcounts + 1 WHERE articleid =" . $_REQUEST['newsid'])->execute();
296         $this->fb_title = $articleDetailData->articleheading;
297         $this->fb_description = strip_tags($articleDetailData->articlecontent);
298         $this->fb_image = "http://" . $_SERVER['HTTP_HOST'] . '/protected/uploadedImages/' . $articleDetailData->articleattachment;
299         $this->fb_tags =$articleDetailData->tags;

Stack Trace

#7
+
 /home/uridmedi/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 14:58:32 Apache Yii Framework/1.1.25