get_magic_quotes_* functions deprecated in PHP 5.3.x. Check for
[squirrelmail.git] / src / configtest.php
index 967ac11a05969ecd322c338da7370e744d5ebca7..a89020bffc91798f3e759f76761d918fb8a9ae0a 100644 (file)
@@ -303,7 +303,8 @@ if (function_exists('mb_internal_encoding') &&
 /**
  * Do not use SquirrelMail with magic_quotes_* on.
  */
-if ( get_magic_quotes_runtime() || get_magic_quotes_gpc() ||
+if ( (function_exists('get_magic_quotes_runtime') &&  @get_magic_quotes_runtime()) ||
+     (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) ||
     ( (bool) ini_get('magic_quotes_sybase') && ini_get('magic_quotes_sybase') != 'off' )
     ) {
     $magic_quotes_warning='You have enabled any one of <tt>magic_quotes_runtime</tt>, '