summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/bootstrap.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 590f1ba35..f0b588913 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -661,14 +661,12 @@ function variable_set($name, $value) {
* The name of the variable to undefine.
*/
function variable_del($name) {
- global $conf;
-
db_delete('variable')
->condition('name', $name)
->execute();
cache_clear_all('variables', 'cache');
- unset($conf[$name]);
+ unset($GLOBALS['conf'][$name]);
}