Permalink
Browse files

MDL-31775 lesson: fix undefined variable warnings

  • Loading branch information...
danpoltawski committed Mar 27, 2012
1 parent a8a0767 commit a16f0a3cad7effb3b29809d65e420375de39bc17
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/view.php
View
@@ -193,7 +193,7 @@
// if there are any questions have been answered correctly in this attempt
$corrrectattempts = $lesson->get_attempts($retries, true);
if ($corrrectattempts>0) {
if (!empty($corrrectattempts)) {
$attempt = end($corrrectattempts);
$jumpto = $DB->get_field('lesson_answers', 'jumpto', array('id' => $attempt->answerid));
// convert the jumpto to a proper page id

0 comments on commit a16f0a3

Please sign in to comment.