Permalink
Browse files

Merge branch 'MDL-29697-Fix_incorrect_error_msg' of https://github.co…

…m/ncsu-delta/moodle into MOODLE_19_STABLE
  • Loading branch information...
2 parents 0aff48f + 6e698a4 commit 37e289a131e0db4e235938a614f012ec86c6e1c4 Sam Hemelryk committed Oct 17, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/lesson/action/updatepage.php
@@ -71,7 +71,8 @@
}
}
}
- if (!update_record("lesson_answers", $oldanswer)) {
+ // Don't return the error if it wasn't updated because original question type had no answers
+ if (!empty($oldanswer->id) && !update_record("lesson_answers", $oldanswer)) {
error("Update page: EOB not updated");
}
} else {

0 comments on commit 37e289a

Please sign in to comment.