PHP notice

Undefined offset: 0

C:\WAMP\apps\limesurvey\application\helpers\SurveyRuntimeHelper.php(627)

615         //******************************************************************************************************
616 
617         $okToShowErrors = (!$previewgrp && (isset($invalidLastPage) || $_SESSION[$LEMsessid]['prevstep'] == $_SESSION[$LEMsessid]['step']));
618 
619         Yii::app()->getController()->loadHelper('qanda');
620         setNoAnswerMode($thissurvey);
621 
622         //Iterate through the questions about to be displayed:
623         $inputnames = array();
624 
625         foreach ($_SESSION[$LEMsessid]['grouplist'] as $gl)
626         {
627             $gid = $gl[0];
628             $qnumber = 0;
629 
630             if ($surveyMode != 'survey')
631             {
632                 $onlyThisGID = $stepInfo['gid'];
633                 if ($onlyThisGID != $gid)
634                 {
635                     continue;
636                 }
637             }
638 
639             // TMSW - could iterate through LEM::currentQset instead

Stack Trace

#0
+
 C:\WAMP\apps\limesurvey\application\controllers\survey\index.php(664): SurveyRuntimeHelper->run("394685", array("surveyid" => "394685", "thistpl" => "C:\WAMP\apps\limesurvey\templates/default", "totalquestions" => null, "thissurvey" => array("surveyls_survey_id" => "394685", "surveyls_language" => "en", "surveyls_title" => "testy", "surveyls_description" => "test survey", ...), ...))
659         //Send local variables to the appropriate survey type
660         unset($redata);
661         $redata = compact(array_keys(get_defined_vars()));
662         Yii::import('application.helpers.SurveyRuntimeHelper');
663         $tmp = new SurveyRuntimeHelper();
664         $tmp->run($surveyid,$redata);
665 
666         if (isset($_POST['saveall']) || isset($flashmessage))
667         {
668             echo "<script language='JavaScript'> $(document).ready( function() { alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>";
669         }
#1
+
 C:\WAMP\apps\limesurvey\application\controllers\survey\index.php(20): index->action()
15 
16 class index extends CAction {
17 
18     public function run()
19     {
20         $this->action();
21     }
22 
23     function action()
24     {
25         global $surveyid, $thistpl, $totalquestions;
#9
+
 C:\WAMP\apps\limesurvey\index.php(171): CApplication->run()
166  *
167  */
168 require_once BASEPATH . 'yii' . EXT;
169 require_once APPPATH . 'core/LSYii_Application' . EXT;
170 
171 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
172 
173 /* End of file index.php */
174 /* Location: ./index.php */
2012-04-13 10:10:30 Apache/2.2.21 (Win64) PHP/5.3.9 Yii Framework/1.1.10