From 3430fb299378b3f0ff9322c8e69bb0c9ec12d06d Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 2 Sep 2006 23:40:13 +0000 Subject: [PATCH] Only launch the old upgrade if it exists. It doesn'texist for new DB flavours and modules. --- admin/index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.39.5