diff --git a/dir2cast.php b/dir2cast.php index 7f4a9a8..6bf9b07 100644 --- a/dir2cast.php +++ b/dir2cast.php @@ -1945,7 +1945,11 @@ public function output() */ function magic_stripslashes($s) { - return get_magic_quotes_gpc() ? stripslashes($s) : $s; + if(function_exists('get_magic_quotes_gpc')) + { + return get_magic_quotes_gpc() ? stripslashes($s) : $s; + } + return $s; } /**