diff --git a/common.php b/common.php index 39ff5755..4766df5f 100644 --- a/common.php +++ b/common.php @@ -73,7 +73,7 @@ Config::write($CONF); require_once("$incpath/languages/language.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"); }