From: skodak Date: Tue, 5 May 2009 09:10:53 +0000 (+0000) Subject: MDL-19067 removed obsoleted string (never used in any STABLE branch) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bd36925a97831ee7a2269b83b64355ee40ffa61f;p=moodle.git MDL-19067 removed obsoleted string (never used in any STABLE branch) --- diff --git a/mod/lesson/importppt.php b/mod/lesson/importppt.php index ff69e1515a..968a61fda3 100644 --- a/mod/lesson/importppt.php +++ b/mod/lesson/importppt.php @@ -575,7 +575,9 @@ function book_save_objects($chapters, $bookid, $pageid='0') { // nothing fancy, just save them all in order foreach ($chapters as $chapter) { - $chapter->id = $DB->insert_record('book_chapters', $chapter); + if (!$chapter->id = $DB->insert_record('book_chapters', $chapter)) { + print_error('cannotupdatebook', 'lesson'); + } } return true; }