make version checks a bit more readable

master
Andrew Dolgov 11 years ago
parent a582da6527
commit 1b113281ff

@ -20,7 +20,7 @@
array_push($errors, "Please don't run this script as root.");
}
if (!(version_compare(PHP_VERSION, '5.3.0', '>='))) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
array_push($errors, "PHP version 5.3.0 or newer required.");
}

@ -7,7 +7,7 @@
// we need a separate check here because functions.php might get parsed
// incorrectly before 5.3 because of :: syntax.
if (!(version_compare(PHP_VERSION, '5.3.0', '>='))) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
print "<b>Fatal Error</b>: PHP version 5.3.0 or newer required.\n";
exit;
}

Loading…
Cancel
Save