mirror of
https://github.com/moodle/moodle.git
synced 2025-05-14 20:26:19 +02:00
fixed table already exists problem during install and upgrade in Opera
This commit is contained in:
parent
7d8a3cb06a
commit
b8dc934baa
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user