have to use the GLOBALS global to globally unset a global

orig_fof
steveminutillo 2007-06-12 02:40:16 +00:00
parent 9a8efb2e8d
commit 8753aec301
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {