summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDimitar Dimitrov <[email protected]>2013-03-16 00:30:29 +0100
committerDimitar Dimitrov <[email protected]>2013-03-16 00:30:29 +0100
commitf2ea6b1696787771adc5859b3e475df8cd65b7ce (patch)
tree911d99ddeec3a33e63639ff6882c7535a40f1471 /index.php
parent737ef4dcc25f73daa3200dd7e53ef47161a104db (diff)
Found another place with a php version check.
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index fa868318a..4d1ff795b 100644
--- 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;
}