diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/configuration.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 4b908de51..5adc4bddc 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -331,6 +331,10 @@ function run_function_once($functionname, $timelastupdatedcheck = 0) { function unset_config($name, $site_guid = 0) { global $CONFIG; + if (isset($CONFIG->$name)) { + unset($CONFIG->$name); + } + $name = sanitise_string($name); $site_guid = (int) $site_guid; if ($site_guid == 0) { |