From 8753aec30157d2b450fd6d7453c4b07cbd240995 Mon Sep 17 00:00:00 2001 From: steveminutillo Date: Tue, 12 Jun 2007 02:40:16 +0000 Subject: [PATCH] have to use the GLOBALS global to globally unset a global --- fof-main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fof-main.php b/fof-main.php index d9bd8c2..261c1c1 100644 --- a/fof-main.php +++ b/fof-main.php @@ -736,7 +736,7 @@ function fof_todays_date() function fof_repair_drain_bamage() { - if (ini_get('register_globals')) foreach($_REQUEST as $k=>$v) { unset(${$k}); } + if (ini_get('register_globals')) foreach($_REQUEST as $k=>$v) { unset($GLOBALS[$k]); } // thanks to submitter of http://bugs.php.net/bug.php?id=39859 if (get_magic_quotes_gpc()) {