diff --git a/install.php b/install.php
index dc5a617c28bd5a6f6b475ceeac5eef6e235dc84f..d954e20ed9f3e1b0ccbccd57e56fa8ed1982520a 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