PHP notice

Undefined index: updatecheckperiod

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/globalsettings.php(152)

140         if (!in_array($defaultlang,$aRestrictToLanguages)){ // Force default language in restrictToLanguages
141             $aRestrictToLanguages[]=$defaultlang;
142         }
143         if (count(array_diff(array_keys(getLanguageData(false,Yii::app()->session['adminlang'])), $aRestrictToLanguages)) == 0) {
144             $aRestrictToLanguages = '';
145         } else {
146             $aRestrictToLanguages = implode(' ', $aRestrictToLanguages);
147         }
148 
149         setGlobalSetting('defaultlang', $defaultlang);
150         setGlobalSetting('restrictToLanguages', trim($aRestrictToLanguages));
151         setGlobalSetting('sitename', strip_tags($_POST['sitename']));
152         setGlobalSetting('updatecheckperiod', (int)($_POST['updatecheckperiod']));
153         setGlobalSetting('updatenotification', strip_tags($_POST['updatenotification']));
154         setGlobalSetting('defaulthtmleditormode', sanitize_paranoid_string($_POST['defaulthtmleditormode']));
155         setGlobalSetting('defaultquestionselectormode', sanitize_paranoid_string($_POST['defaultquestionselectormode']));
156         setGlobalSetting('defaulttemplateeditormode', sanitize_paranoid_string($_POST['defaulttemplateeditormode']));
157         if (!Yii::app()->getConfig('demoMode'))
158         {
159             $sTemplate=Yii::app()->getRequest()->getPost("defaulttemplate");
160             if(array_key_exists($sTemplate,getTemplateList()))// Filter template name
161             {
162                 setGlobalSetting('defaulttemplate', $sTemplate);
163             }
164 

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/globalsettings.php(43): GlobalSettings->_saveSettings()
38     * @return void
39     */
40     public function index()
41     {
42         if (!empty($_POST['action'])) {
43             $this->_saveSettings();
44         }
45         $this->_displaySettings();
46     }
47 
48     public function showphpinfo()
#3
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(GlobalSettings, ReflectionMethod, array())
094             $oMethod = new ReflectionMethod($this, $sDefault);
095         }
096 
097         // We're all good to go, let's execute it
098         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
099         return parent::runWithParamsInternal($this, $oMethod, $params);
100     }
101 
102     /**
103     * Some functions have different parameters, which are just an alias of the
104     * usual parameters we're getting in the url. This function just populates
#7
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(164): CController->run("globalsettings")
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     *
2015-08-12 15:08:26 Apache/2.2.22 (Debian) Yii Framework/1.1.15