MDL-18293 exception and DML cleanup

This commit is contained in:
skodak
2009-02-17 16:50:36 +00:00
parent b25263ffa1
commit 5e2f308b91
8 changed files with 30 additions and 54 deletions
+1 -3
View File
@@ -32,9 +32,7 @@ if ($frm = data_submitted() and confirm_sesskey()) {
if (preg_match('/^lockconfig_(.+?)$/', $name, $matches)) {
$plugin = "auth/$auth";
$name = $matches[1];
if (!set_config($name, $value, $plugin)) {
print_error("cannotsaveconfig", 'error', '', (object)array('name'=>$name, 'value'=>$value, 'plugin'=>$plugin));
}
set_config($name, $value, $plugin);
}
}
redirect($returnurl);