]> git.wh0rd.org Git - tt-rss.git/commitdiff
make version checks a bit more readable
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 16 Mar 2013 08:06:34 +0000 (12:06 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 16 Mar 2013 08:06:34 +0000 (12:06 +0400)
include/sanity_check.php
index.php

index 3e8832912de041d34c10cd38929ae42fcb700aa8..5cb55674663cf5dd447cb3b503dde4a7910c7b05 100644 (file)
@@ -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.");
                        }
 
index 4d1ff795b27cca2bb9f13db41e078003703c21bf..6584d8d2e22139171c2ef49094353967b2142e7b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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;
        }