PHP notice

Undefined variable: sAction

/home/sondages.pro/htdocs/limesurvey_GIT/testing/answershtml/application/controllers/admin/database.php(1243)

1231                         #                                Yii::app()->setFlashMessage(gT("Question in language %s could not be created."),'error');
1232                         #                            }
1233                     }
1234                 }
1235             }
1236 
1237 
1238             if (!$this->iQuestionID)
1239             {
1240                 Yii::app()->setFlashMessage(gT("Question could not be created."),'error');
1241 
1242             } else {
1243                 if ($sAction == 'copyquestion') {
1244                     if (returnGlobal('copysubquestions') == 1)
1245                     {
1246                         $aSQIDMappings = array();
1247                         $r1 = Question::model()->getSubQuestions(returnGlobal('oldqid'));
1248                         $aSubQuestions = $r1->readAll();
1249 
1250                         foreach ($aSubQuestions as $qr1)
1251                         {
1252                             $qr1['parent_qid'] = $this->iQuestionID;
1253                             $oldqid= '';
1254                             if (isset($aSQIDMappings[$qr1['qid']]))
1255                             {

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/answershtml/application/controllers/admin/database.php(68): database->actionInsertCopyQuestion("91424")
63         }
64         if ($sAction == "updatesubquestions" && Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent','update')){
65             $this->actionSubQuestions($iSurveyID);
66         }
67         if (in_array($sAction, array('insertquestion', 'copyquestion')) && Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent','create')){
68             $this->actionInsertCopyQuestion($iSurveyID);
69         }
70         if ($sAction == "updatequestion" && Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent','update')){
71             $this->actionUpdateQuestion($iSurveyID);
72         }
73         if (($sAction == "updatesurveylocalesettings") && (Permission::model()->hasSurveyPermission($iSurveyID,'surveylocale','update') || Permission::model()->hasSurveyPermission($iSurveyID,'surveysettings','update'))){
#3
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/answershtml/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(database, ReflectionMethod, array("sa" => "index"))
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
#7
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/answershtml/application/controllers/AdminController.php(177): CController->run("database")
172                     $this->redirect(array('/admin/authentication/sa/login'));
173                 }
174 
175             }
176 
177             return parent::run($action);
178     }
179 
180     /**
181     * Routes all the actions to their respective places
182     *
2016-11-14 17:34:57 Apache/2.2.22 (Debian) Yii Framework/1.1.17