From: skodak Date: Sat, 26 Aug 2006 17:20:52 +0000 (+0000) Subject: fixed table already exists problem during install and upgrade in Opera X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b8dc934baaab2a604d456cf65f127364d9ca013a;p=moodle.git fixed table already exists problem during install and upgrade in Opera --- diff --git a/admin/config.php b/admin/config.php index 6b30e86361..fd1694b239 100644 --- a/admin/config.php +++ b/admin/config.php @@ -53,15 +53,15 @@ if ($current = get_record('config', 'name', $name)) { $conf->id = $current->id; if (! update_record('config', $conf)) { - notify("Could not update $name to $value"); + error("Error: Could not update $name to $value"); } } else { if (! insert_record('config', $conf)) { - notify("Error: could not add new variable $name !"); + error("Error: could not add new variable $name !"); } } } - redirect('index.php', get_string('changessaved'), 1); + redirect('index.php'); exit; } else {