Improve code readability - refs BT#15281

pull/2865/head
Angel Fernando Quiroz Campos 7 years ago
parent 14316b40a1
commit 00707be1ad
  1. 18
      main/survey/survey.lib.php

@ -2254,24 +2254,20 @@ class SurveyManager
survey_id = $surveyId";
$result = Database::query($sql);
$countOfQuestions = Database::result($result, 0, 0);
$count = 1;
if (!empty($numberPageBreaks) && !empty($countOfQuestions)) {
$count = $countOfQuestions;
}
if ($survey['one_question_per_page'] == 1) {
$count = 1;
if (!empty($countOfQuestions)) {
$count = $countOfQuestions;
return $countOfQuestions;
}
} else {
$count = $numberPageBreaks + 1;
if (empty($numberPageBreaks)) {
$count = 1;
return 1;
}
if (empty($numberPageBreaks)) {
return 1;
}
return $count;
return $numberPageBreaks + 1;
}
/**

Loading…
Cancel
Save