PHP notice

Trying to access array offset on value of type bool

/mnt/data/shnoulle/nginx/www/3LTS/application/helpers/frontend_helper.php(2144)

2132     /* @deprecated since we use button and not input with different value. */
2133     foreach ($aAcceptedMove as $sAccepteMove) {
2134         if (Yii::app()->request->getParam($sAccepteMove)) {
2135                     $move = $sAccepteMove;
2136         }
2137     }
2138     /* default move (user don't click on a button, but use enter in a input:text or a select */
2139     if ($move == 'default') {
2140         $surveyid = Yii::app()->getConfig('surveyID');
2141         $thissurvey = getsurveyinfo($surveyid);
2142         $iSessionStep = (isset($_SESSION['survey_'.$surveyid]['step'])) ? $_SESSION['survey_'.$surveyid]['step'] : false;
2143         $iSessionTotalSteps = (isset($_SESSION['survey_'.$surveyid]['totalsteps'])) ? $_SESSION['survey_'.$surveyid]['totalsteps'] : false;
2144         if ($iSessionStep && ($iSessionStep == $iSessionTotalSteps) || $thissurvey['format'] == 'A') {
2145             $move = "movesubmit";
2146         } else {
2147             $move = "movenext";
2148         }
2149     }
2150     return $move;
2151 }
2152 
2153 /**
2154  * Get the margin class for side-body div depending
2155  * on side-menu behaviour config and page (edit or not
2156  * etc).

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/controllers/survey/index.php(37): getMove()
32 
33         $this->_loadRequiredHelpersAndLibraries();
34         $param       = $this->_getParameters(func_get_args(), $_POST);
35         $surveyid    = $param['sid'];
36         $thisstep    = $param['thisstep'];
37         $move        = getMove();
38         $clienttoken = trim($param['token']);
39 
40         $oSurvey = Survey::model()->findByPk($surveyid);
41 
42         if(empty($oSurvey)) {
#1
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/controllers/survey/index.php(24): index->action()
19     public $oTemplate;
20 
21     public function run()
22     {
23         useFirebug();
24         $this->action();
25     }
26 
27     public function action()
28     {
29         global $surveyid;
#9
+
 /mnt/data/shnoulle/nginx/www/3LTS/index.php(194): CApplication->run()
189 require_once APPPATH . 'core/LSYii_Application' . EXT;
190 
191 $config = require_once(APPPATH . 'config/internal' . EXT);
192 
193 Yii::$enableIncludePath = false;
194 Yii::createApplication('LSYii_Application', $config)->run();
195 
196 /* End of file index.php */
197 /* Location: ./index.php */
2020-06-15 06:11:28 nginx/1.18.0 Yii Framework/1.1.22-dev