PHP notice

Undefined index: surveyls_policy_notice_label

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/common_helper.php(874)

862         $result = SurveyLanguageSetting::model()->with('survey')->findByPk(array('surveyls_survey_id' => $surveyid, 'surveyls_language' => $languagecode));
863         if (is_null($result)) {
864             // When additional language was added, but not saved it does not exists
865             // We should revert to the base language then
866             $languagecode = Survey::model()->findByPk($surveyid)->language;
867             $result = SurveyLanguageSetting::model()->with('survey')->findByPk(array('surveyls_survey_id' => $surveyid, 'surveyls_language' => $languagecode));
868         }
869         if ($result) {
870             $thissurvey = array_merge($result->survey->attributes, $result->attributes);
871             $thissurvey['name'] = $thissurvey['surveyls_title'];
872             $thissurvey['description'] = $thissurvey['surveyls_description'];
873             $thissurvey['welcome'] = $thissurvey['surveyls_welcometext'];
874             $thissurvey['datasecurity_notice_label'] = $thissurvey['surveyls_policy_notice_label'];
875             $thissurvey['datasecurity_error'] = $thissurvey['surveyls_policy_error'];
876             $thissurvey['datasecurity_notice'] = $thissurvey['surveyls_policy_notice'];
877             $thissurvey['templatedir'] = $thissurvey['template'];
878             $thissurvey['adminname'] = $thissurvey['admin'];
879             $thissurvey['tablename'] = $oSurvey->responsesTableName;
880             $thissurvey['urldescrip'] = $thissurvey['surveyls_urldescription'];
881             $thissurvey['url'] = $thissurvey['surveyls_url'];
882             $thissurvey['expiry'] = $thissurvey['expires'];
883             $thissurvey['email_invite_subj'] = $thissurvey['surveyls_email_invite_subj'];
884             $thissurvey['email_invite'] = $thissurvey['surveyls_email_invite'];
885             $thissurvey['email_remind_subj'] = $thissurvey['surveyls_email_remind_subj'];
886             $thissurvey['email_remind'] = $thissurvey['surveyls_email_remind'];

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/common_helper.php(2693): getSurveyInfo("431846")
2688 
2689 // getEmailFormat: returns email format for the survey
2690 // returns 'text' or 'html'
2691 function getEmailFormat($surveyid)
2692 {
2693     $surveyInfo = getSurveyInfo($surveyid);
2694     if ($surveyInfo['htmlemail'] == 'Y') {
2695         return 'html';
2696     } else {
2697         return 'text';
2698     }
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/admin/htmleditor_helper.php(136): getEmailFormat("431846")
131         if (!$session['htmleditormode'] || ($session['htmleditormode'] != 'inline' && $session['htmleditormode'] != 'popup')) {
132                 $htmleditormode = Yii::app()->getConfig('defaulthtmleditormode');
133         } else {
134             $htmleditormode = $session['htmleditormode'];
135         }
136         if ($surveyID && getEmailFormat($surveyID) != 'html' && substr($fieldtype, 0, 6) === "email-") {
137 // email but survey as text email
138             return '';
139         }
140 
141         if ($htmleditormode == 'popup' || ($fieldtype == 'editanswer' || $fieldtype == 'addanswer' || $fieldtype == 'editlabel' || $fieldtype == 'addlabel') && (preg_match("/^translate/", $action) == 0)) {
#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/views/admin/survey/Question/question_subviews/_tabs.php(50): getEditor("question-text", "question_fr", "[Question :](fr)", "431846", ...)
45         <div class="form-group">
46                 <label class=" control-label" for='question_<?php echo $oSurvey->language; ?>'><?php eT("Question:"); ?></label>
47                 <div class="">
48                 <div class="htmleditor input-group">
49                     <?php echo CHtml::textArea("question_{$oSurvey->language}",$eqrow['question'],array('class'=>'form-control','cols'=>'60','rows'=>'8','id'=>"question_{$oSurvey->language}")); ?>
50                     <?php echo getEditor("question-text","question_".$oSurvey->language, "[".gT("Question:", "js")."](".$oSurvey->language.")",$surveyid,$gid,$qid,$action); ?>
51                 </div>
52                 </div>
53         </div>
54 
55         <!-- Question Help -->
2018-03-09 15:44:44 Apache/2.2.22 (Debian) Yii Framework/1.1.18