diff --git a/main/exercise/exercise.php b/main/exercise/exercise.php index 3df48d6169..698128e146 100644 --- a/main/exercise/exercise.php +++ b/main/exercise/exercise.php @@ -826,7 +826,6 @@ if (!empty($exerciseList)) { } $actions .= $settings; - // Exercise results $resultsLink = ''. Display::return_icon('test_results.png', get_lang('Results'), '', ICON_SIZE_SMALL).''; diff --git a/main/inc/lib/formvalidator/Element/DateTimeRangePicker.php b/main/inc/lib/formvalidator/Element/DateTimeRangePicker.php index 5ba63c0cb5..e4fe8f1a52 100644 --- a/main/inc/lib/formvalidator/Element/DateTimeRangePicker.php +++ b/main/inc/lib/formvalidator/Element/DateTimeRangePicker.php @@ -170,6 +170,18 @@ class DateTimeRangePicker extends DateRangePicker ]; } + /** + * @param string $value + */ + public function setValue($value) + { + $this->updateAttributes( + [ + 'value' => $value, + ] + ); + } + /** * Get the necessary javascript for this datepicker. * @@ -246,16 +258,4 @@ class DateTimeRangePicker extends DateRangePicker return $js; } - - /** - * @param string $value - */ - public function setValue($value) - { - $this->updateAttributes( - [ - 'value' => $value - ] - ); - } } diff --git a/main/survey/create_new_survey.php b/main/survey/create_new_survey.php index 1adbef2045..086770a232 100755 --- a/main/survey/create_new_survey.php +++ b/main/survey/create_new_survey.php @@ -343,7 +343,6 @@ $form->setDefaults($defaults); // The validation or display if ($form->validate()) { - // Exporting the values $values = $form->getSubmitValues(); // Storing the survey diff --git a/main/survey/edit_meeting.php b/main/survey/edit_meeting.php index 8b28c8701d..b4523a649b 100644 --- a/main/survey/edit_meeting.php +++ b/main/survey/edit_meeting.php @@ -79,7 +79,6 @@ $form->addRule( 'lte' ); - $form->addHtmlEditor('survey_introduction', get_lang('Description'), false); $form->setRequired($text); diff --git a/main/survey/survey.lib.php b/main/survey/survey.lib.php index ebc4aa4a1e..0f26f0bf3b 100755 --- a/main/survey/survey.lib.php +++ b/main/survey/survey.lib.php @@ -508,7 +508,7 @@ class SurveyManager $return['id'] = $values['survey_id']; } - $survey_id = intval($return['id']); + $survey_id = (int) $return['id']; // Gradebook $gradebook_option = false; @@ -1478,7 +1478,6 @@ class SurveyManager survey_id='".$survey_id."' AND question_id='".$question_id."'"; Database::query($sql); - error_log($sql); // Deleting the options of the question of the survey self::delete_survey_question_option($survey_id, $question_id, $shared);