diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-08-26 13:25:29 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-08-26 13:25:29 +0200 |
commit | c114d4c4a0ef8fa3f244e09219868b02f6c01c67 (patch) | |
tree | 9cc5c42c57a5a9f1fa0caca128c0a0bb6b1f26f9 | |
parent | 99e10b7f23d5d909db42434325a51a9c626fd8fb (diff) | |
download | rpg-c114d4c4a0ef8fa3f244e09219868b02f6c01c67.tar.gz rpg-c114d4c4a0ef8fa3f244e09219868b02f6c01c67.tar.bz2 |
don't call set_magic_quotes_runtime if it doesn't exists FS#2583
this function was removed in PHP 5.4.0
-rw-r--r-- | inc/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php index 3cafab986..9568d9b93 100644 --- a/inc/init.php +++ b/inc/init.php @@ -166,7 +166,7 @@ if (get_magic_quotes_gpc() && !defined('MAGIC_QUOTES_STRIPPED')) { @ini_set('magic_quotes_gpc', 0); define('MAGIC_QUOTES_STRIPPED',1); } -@set_magic_quotes_runtime(0); +if(function_exists('set_magic_quotes_runtime')) @set_magic_quotes_runtime(0); @ini_set('magic_quotes_sybase',0); // don't let cookies ever interfere with request vars |