Permalink
Browse files

MDL-31775 lesson: fix undefined variable warnings

  • Loading branch information...
danpoltawski committed Mar 27, 2012
1 parent 3bf0bb6 commit 9d0610f0f39555e3bf625888a7fbb32d2936c488
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 9d0610f

Please sign in to comment.