]> git.mjollnir.org Git - moodle.git/commitdiff
fixed table already exists problem during install and upgrade in Opera
authorskodak <skodak>
Sat, 26 Aug 2006 17:20:52 +0000 (17:20 +0000)
committerskodak <skodak>
Sat, 26 Aug 2006 17:20:52 +0000 (17:20 +0000)
admin/config.php

index 6b30e8636186f32247a29c4ad167d11ce153382d..fd1694b2397aff7470361e033623ddd812c4283c 100644 (file)
                 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 {