Minor - fix php warning

pull/2729/head
Julio Montoya 7 years ago
parent f6cb14b3b3
commit 0e76318206
  1. 2
      main/survey/preview.php

@ -203,7 +203,7 @@ if (api_is_course_admin() ||
}
$before = 0;
if (isset($paged_questions[$_GET['show'] -1])) {
if (isset($_GET['show']) && isset($paged_questions[$_GET['show'] -1])) {
$before = count($paged_questions[$_GET['show'] -1]);
}

Loading…
Cancel
Save