summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-09-14 13:46:30 +0200
committerMichael Hamann <michael@content-space.de>2012-09-14 13:49:45 +0200
commit1426683192291ee821c713c3047cb2b2f9bac592 (patch)
tree02ada1d72532fb83d659e442a96221cede613874 /install.php
parentbe808eff897f73611a02b3482afb41a8ea25a355 (diff)
downloadrpg-1426683192291ee821c713c3047cb2b2f9bac592.tar.gz
rpg-1426683192291ee821c713c3047cb2b2f9bac592.tar.bz2
Only call set_magic_quotes_runtime in the installer when it exists FS#2583
According to the documentation the function was removed in PHP 5.4.0 though it still seems to exist in my PHP 5.4.6 installation.
Diffstat (limited to 'install.php')
-rw-r--r--install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.php b/install.php
index dc5a617c2..d954e20ed 100644
--- a/install.php
+++ b/install.php
@@ -24,7 +24,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);
// language strings