PHP notice

Undefined index: box-url-1

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

242         $savetime = ((float)$_POST['timeadjust'])*60 . ' minutes'; //makes sure it is a number, at least 0
243         if ((substr($savetime, 0, 1) != '-') && (substr($savetime, 0, 1) != '+')) {
244             $savetime = '+' . $savetime;
245         }
246         setGlobalSetting('timeadjust', $savetime);
247         setGlobalSetting('usercontrolSameGroupPolicy', strip_tags($_POST['usercontrolSameGroupPolicy']));
248 
249 
250         // Boxes
251         for ($i=1; $i < 7; $i++)
252         {
253             $box = Boxes::model()->find(array('condition'=>'position=:positionId', 'params'=>array(':positionId'=>$i)));
254             $box->url = sanitize_html_string($_POST['box-url-'.$i]);
255             $box->title = sanitize_html_string($_POST['box-title-'.$i]);
256             $box->ico = sanitize_html_string($_POST['box-ico-'.$i]);
257             $box->desc = sanitize_html_string($_POST['box-desc-'.$i]);
258             $box->save();
259         }
260 
261         Yii::app()->session['flashmessage'] = $warning.gT("Global settings were saved.");
262 
263         // Redirect if user clicked save-and-close-button
264         if (isset($_POST['saveandclose']))
265         {
266             $url = htmlspecialchars_decode(Yii::app()->session['refurl']);

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(101): CAction->runWithParamsInternal(GlobalSettings, 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
#7
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(165): CController->run("globalsettings")
160                     $this->redirect(array('/admin/authentication/sa/login'));
161                 }
162 
163             }
164 
165             return parent::run($action);
166     }
167 
168     /**
169     * Routes all the actions to their respective places
170     *
2016-02-16 13:54:02 Apache/2.2.22 (Debian) Yii Framework/1.1.16