From bc8e56e7dad2be66b5f49cf7d0ea43dd1fec4b68 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Tue, 7 Oct 2014 08:24:40 +0200 Subject: [PATCH] fix version_compare --- install/lib/class.FroxlorInstall.php | 2 +- lib/init.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/lib/class.FroxlorInstall.php b/install/lib/class.FroxlorInstall.php index 1b4d1317..4d85e355 100644 --- a/install/lib/class.FroxlorInstall.php +++ b/install/lib/class.FroxlorInstall.php @@ -851,7 +851,7 @@ class FroxlorInstall { } // Check if magic_quotes_runtime is active | get_magic_quotes_runtime() is always FALSE since 5.4 - if (version_compare("5.4.0", PHP_VERSION, "<")) { + if (version_compare(PHP_VERSION, "5.4.0", "<")) { $content .= $this->_status_message('begin', $this->_lng['requirements']['phpmagic_quotes_runtime']); if (get_magic_quotes_runtime()) { // deactivate it diff --git a/lib/init.php b/lib/init.php index 5b49db9a..61157c59 100644 --- a/lib/init.php +++ b/lib/init.php @@ -122,7 +122,7 @@ $idna_convert = new idna_convert_wrapper(); * disable magic_quotes_runtime if enabled */ // since 5.4 get_magic_quotes_runtime() and get_magic_quotes_gpc() return always FALSE -if (version_compare("5.4.0", PHP_VERSION, "<")) { +if (version_compare(PHP_VERSION, "5.4.0", "<")) { if (get_magic_quotes_runtime()) { // deactivate set_magic_quotes_runtime(false);