From 77423ed423604447d32d35f3dc9df3026922ebc1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 23 May 2009 19:14:42 +0000 Subject: [PATCH] - Patch #471032 by chx: variable_del is broken! --- includes/bootstrap.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 590f1ba35ce..f0b5889130d 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]); }