PHP notice

Undefined offset: 1

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/database.php(329)

317                                 $oSubQuestion=Question::model()->find("qid=:qid AND language=:language",array(":qid"=>$aInsertQID[$iScaleID][$iPosition],':language'=>$sLanguage));
318                                 if(!$oSubQuestion)
319                                     $oSubQuestion=new Question;
320                                 $oSubQuestion->sid=$iSurveyID;
321                                 $oSubQuestion->qid=$aInsertQID[$iScaleID][$iPosition];
322                                 $oSubQuestion->gid=$iQuestionGroupID;
323                                 $oSubQuestion->question_order=$iPosition+1;
324                                 $oSubQuestion->title=$aCodes[$iScaleID][$iPosition];
325                                 $oSubQuestion->question=$subquestionvalue;
326                                 $oSubQuestion->parent_qid=$iQuestionID;
327                                 $oSubQuestion->language=$sLanguage;
328                                 $oSubQuestion->scale_id=$iScaleID;
329                                 $oSubQuestion->relevance=$aRelevance[$iScaleID][$iPosition];
330                             }
331                         }
332                         if ($oSubQuestion->qid) {
333                             switchMSSQLIdentityInsert('questions',true);
334                             $bSubQuestionResult=$oSubQuestion->save();
335                             switchMSSQLIdentityInsert('questions',false);
336                         }else
337                         {
338                             $bSubQuestionResult=$oSubQuestion->save();
339                         }
340                         if($bSubQuestionResult)
341                         {

Stack Trace

#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(database, ReflectionMethod, array())
096             $oMethod = new ReflectionMethod($this, $sDefault);
097         }
098 
099         // We're all good to go, let's execute it
100         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
101         return parent::runWithParamsInternal($this, $oMethod, $params);
102     }
103 
104     /**
105     * Some functions have different parameters, which are just an alias of the
106     * usual parameters we're getting in the url. This function just populates
#6
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(164): CController->run("database")
159                     $this->redirect(array('/admin/authentication/sa/login'));
160                 }
161 
162             }
163 
164             return parent::run($action);
165     }
166 
167     /**
168     * Routes all the actions to their respective places
169     *
#10
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(211): CApplication->run()
206         die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath));
207     }
208 }
209 
210 Yii::$enableIncludePath = false;
211 Yii::createApplication('LSYii_Application', $config)->run();
212 
213 /* End of file index.php */
214 /* Location: ./index.php */
2016-03-21 11:24:59 Apache/2.2.22 (Debian) Yii Framework/1.1.17