Commit 872e3093 authored by Thomas Citharel's avatar Thomas Citharel
Browse files

Merge branch 'fix-version-check' into 'develop'

Fix php version check

See merge request framasoft/framadate!223
parents 7e12443b 755cd18d
......@@ -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));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment