strip slashes from value only if it exists

This commit is contained in:
Lars Kneschke 2004-01-12 06:11:23 +00:00
parent 75ec26f4d4
commit 69e0eea014

View File

@ -510,7 +510,7 @@
$value = $GLOBALS[$meth][$varname]; $value = $GLOBALS[$meth][$varname];
$i = $cnt+1; $i = $cnt+1;
} }
if(get_magic_quotes_gpc()) if(get_magic_quotes_gpc() && isset($value))
{ {
if(@is_array($value)) if(@is_array($value))
{ {