]> wagnertech.de Git - timetracker.git/blobdiff - dbinstall.php
Increased required PHP version to 5.4 because of week view issue.
[timetracker.git] / dbinstall.php
index 6195c39614a69db5baa0547f28f028142aff419e..2b0d896ca3fccf2f4e80a6113fca7af4e3bfb130 100755 (executable)
@@ -78,7 +78,9 @@ if ($request->isGet()) {
   }
 
   // Check if PHP version is good enough.
-  $required_version = '5.2.1'; // Something in TCPDF library does not work below this one.
+  // $required_version = '5.2.1'; // Something in TCPDF library does not work below this one.
+  $required_version = '5.4.0';    // Week view (week.php) requires 5.4 because of []-way of referencing arrays.
+                                  // This needs further investigation as we use [] elsewhere without obvious problems.
   if (version_compare(phpversion(), $required_version, '>=')) {
     echo('PHP version: '.phpversion().', good enough.<br>');
   } else {