diff --git a/setup/config.php b/setup/config.php index 76f4500b3b..19417b73b8 100644 --- a/setup/config.php +++ b/setup/config.php @@ -34,8 +34,10 @@ $setup_tpl->set_file(array( )); /* Following to ensure windows file paths are saved correctly */ -set_magic_quotes_runtime(0); - +if (function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime()) +{ + set_magic_quotes_runtime(0); +} $GLOBALS['egw_setup']->loaddb(); /* Check api version, use correct table */