diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-01 01:41:45 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-01 01:41:45 +0000 |
commit | fc8dedf9ded76a366ec8da24c9254a6517b33b3d (patch) | |
tree | 37ace51abd8a840fb5cfb49da068ecc2a5959c0a | |
parent | 1f2022cc5393ee61cbf2361f51eee39d43727f96 (diff) | |
download | elgg-fc8dedf9ded76a366ec8da24c9254a6517b33b3d.tar.gz elgg-fc8dedf9ded76a366ec8da24c9254a6517b33b3d.tar.bz2 |
Fixes #2461 unsetting CONFIG variable in unset_config()
git-svn-id: http://code.elgg.org/elgg/trunk@7487 36083f99-b078-4883-b0ff-0f9b5a30f544
-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) { |