]> git.wh0rd.org Git - tt-rss.git/commitdiff
Found another place with a php version check.
authorDimitar Dimitrov <admin@mitakas.com>
Fri, 15 Mar 2013 23:30:29 +0000 (00:30 +0100)
committerDimitar Dimitrov <admin@mitakas.com>
Fri, 15 Mar 2013 23:30:29 +0000 (00:30 +0100)
index.php

index fa868318ab83ef14b13aaaaa59b6e5a08ed68e7c..4d1ff795b27cca2bb9f13db41e078003703c21bf 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("5.3.0", phpversion()) == 1) {
+       if (!(version_compare(PHP_VERSION, '5.3.0', '>='))) {
                print "<b>Fatal Error</b>: PHP version 5.3.0 or newer required.\n";
                exit;
        }