Minor - flint fixes

pull/2730/head
Julio Montoya 7 years ago
parent 0e76318206
commit b13f46cbee
  1. 4
      main/survey/preview.php
  2. 1
      main/survey/question.php
  3. 3
      main/survey/survey.lib.php

@ -203,8 +203,8 @@ if (api_is_course_admin() ||
}
$before = 0;
if (isset($_GET['show']) && isset($paged_questions[$_GET['show'] -1])) {
$before = count($paged_questions[$_GET['show'] -1]);
if (isset($_GET['show']) && isset($paged_questions[$_GET['show'] - 1])) {
$before = count($paged_questions[$_GET['show'] - 1]);
}
// Selecting the maximum number of pages

@ -138,7 +138,6 @@ switch ($_GET['type']) {
break;
}
// We are editing a question
if (isset($_GET['question_id']) && !empty($_GET['question_id'])) {
$formData = SurveyManager::get_question($_GET['question_id']);

@ -806,7 +806,7 @@ class SurveyManager
* This function duplicates a survey (and also all the question in that survey.
*
* @param int $surveyId id of the survey that has to be duplicated
* @param int $courseId id of the course which survey has to be duplicated
* @param int $courseId id of the course which survey has to be duplicated
*
* @return true
*
@ -2208,7 +2208,6 @@ class SurveyManager
];
self::save_question($surveyData, $values);
}
}
}
}

Loading…
Cancel
Save