From: stronk7 Date: Sat, 2 Sep 2006 23:40:13 +0000 (+0000) Subject: Only launch the old upgrade if it exists. It doesn'texist for new DB X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3430fb299378b3f0ff9322c8e69bb0c9ec12d06d;p=moodle.git Only launch the old upgrade if it exists. It doesn'texist for new DB flavours and modules. --- diff --git a/admin/index.php b/admin/index.php index a458a9a88e..870f1c6340 100644 --- a/admin/index.php +++ b/admin/index.php @@ -217,8 +217,11 @@ upgrade_log_start(); print_heading($strdatabasechecking); $db->debug=true; - /// Launch the old main upgrade - $status = main_upgrade($CFG->version); + /// Launch the old main upgrade (if exists) + $status = true; + if (function_exists('main_upgrade')) { + $status = main_upgrade($CFG->version); + } /// If succesful and exists launch the new main upgrade (XMLDB), called xmldb_main_upgrade if ($status && function_exists('xmldb_main_upgrade')) { $status = xmldb_main_upgrade($CFG->version);