Permalink
Browse files

Fixed missing 'throw' keyword

  • Loading branch information...
1 parent 5aeca1e commit 33b8e0f06dcfcfecd271e753182cd8517393b1d6 @mudrd8mz mudrd8mz committed with skodak Apr 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/upgrade.php
View
@@ -31,7 +31,7 @@ function xmldb_book_upgrade($oldversion) {
$dbman = $DB->get_manager();
if ($oldversion < 2004081100) {
- new upgrade_exception('mod_book', $oldversion, 'Can not upgrade such an old book module, sorry, you should have upgraded it long time ago in 1.9 already.');
+ throw new upgrade_exception('mod_book', $oldversion, 'Can not upgrade such an old book module, sorry, you should have upgraded it long time ago in 1.9 already.');
}
if ($oldversion < 2007052001) {

0 comments on commit 33b8e0f

Please sign in to comment.