From a4d72543f9d9edf0b152b795739035d917feafc5 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 30 Jan 2007 05:09:49 +0000 Subject: [PATCH] There's no need to die with an error if groups_temp doesn't exist, is there? --- group/db/upgrade.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/group/db/upgrade.php b/group/db/upgrade.php index 94f3f73f4d..cf77877483 100644 --- a/group/db/upgrade.php +++ b/group/db/upgrade.php @@ -406,9 +406,7 @@ function xmldb_group_upgrade($oldversion=0) { } if ($result && $oldversion < 2007012400) { - if( table_exists(new XMLDBTable('groups_temp')) - && file_exists($CFG->dirroot.'/group/db/install.xml') ) { - + if (table_exists(new XMLDBTable('groups_temp')) && file_exists($CFG->dirroot.'/group/db/install.xml')) { $groupupgrade = optional_param('confirmgroupupgrade', 0, PARAM_BOOL); if (empty($groupupgrade)) { notice_yesno(get_string('upgradeconfirm', 'group'), 'index.php?confirmgroupupgrade=yes', 'index.php'); @@ -424,9 +422,6 @@ function xmldb_group_upgrade($oldversion=0) { ///$result = $result && groups_rename_db2($suffix='_temp_18'); } - else { - error('Upgrade 2007012400 of groups failed! (Could not update version in config table)'); - } } return $result; -- 2.39.5