From 755cd18d1a17b950a4b395cdfa076150464a9029 Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Wed, 21 Feb 2018 11:17:55 +0100
Subject: [PATCH] Fix php version check

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 admin/check.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin/check.php b/admin/check.php
index 9e9bd6da..24a8dcc2 100644
--- a/admin/check.php
+++ b/admin/check.php
@@ -86,7 +86,7 @@ $conf_filename = $inc_directory . 'config.php';
  */
 
 // PHP Version
-if (version_compare(PHP_VERSION, PHP_NEEDED_VERSION)) {
+if (version_compare(PHP_VERSION, PHP_NEEDED_VERSION) >= 0) {
     $messages[] = new Message('info', __f('Check','PHP version %s is enough (needed at least PHP %s).', PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION, PHP_NEEDED_VERSION));
 } else {
     $messages[] = new Message('danger', __f('Check','Your PHP version (%s) is too old. This application needs at least PHP %s.', phpversion(), PHP_NEEDED_VERSION));
-- 
GitLab