Skip to content

Commit

Permalink
Fix the PHP version check in installer (accept when version is exactl…
Browse files Browse the repository at this point in the history
…y the required version)
  • Loading branch information
mattab committed Nov 4, 2014
1 parent d068dc3 commit f5c50e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Installation/SystemCheck.php
Expand Up @@ -332,7 +332,7 @@ protected static function initServerFilesForSecurity()
public static function isPhpVersionValid($phpVersion)
{
global $piwik_minimumPHPVersion;
return version_compare($piwik_minimumPHPVersion, $phpVersion) === -1;
return version_compare($piwik_minimumPHPVersion, $phpVersion) <= 0;
}

}

0 comments on commit f5c50e0

Please sign in to comment.