only load random_compat if PHP_VERSION is < 7.0

pull/289/head
David Goodwin 5 years ago
parent d788c6ac99
commit a0b4e690b2

@ -73,7 +73,7 @@ Config::write($CONF);
require_once("$incpath/languages/language.php"); require_once("$incpath/languages/language.php");
require_once("$incpath/functions.inc.php"); require_once("$incpath/functions.inc.php");
if (extension_loaded('Phar')) { if (extension_loaded('Phar') && ( version_compare(PHP_VERSION, '7.0.0') < 0)) {
require_once("$incpath/lib/random_compat.phar"); require_once("$incpath/lib/random_compat.phar");
} }

Loading…
Cancel
Save