- Patch #471032 by chx: variable_del is broken!

merge-requests/26/head
Dries Buytaert 2009-05-23 19:14:42 +00:00
parent 6c590f25ef
commit 77423ed423
1 changed files with 1 additions and 3 deletions

View File

@ -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]);
}