MDL-29697 Don't return the error if it wasn't updated because original question type had no answers

This commit is contained in:
Glenn Ansley
2011-10-07 12:04:13 -04:00
parent e9e2def9b0
commit 6e698a4563
+2 -1
View File
@@ -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 {