From e363525419666f03cd1f4c76dae25c8876517113 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 5 Feb 2023 10:40:59 +0100 Subject: [PATCH] Minimum PHP 7.4 --- html/install.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/install.php b/html/install.php index e6a44c47c..f4c5a90e9 100644 --- a/html/install.php +++ b/html/install.php @@ -362,12 +362,12 @@ $flag_php=0; if (!defined('PHP_VERSION_ID')) { $version = explode('.',PHP_VERSION); - define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2])); + define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 )); } -if ( PHP_VERSION_ID < 70200) { - echo $g_failed. " ".phpversion()." ". _("Version PHP trop basse , minimum 7.2"); +if ( PHP_VERSION_ID < 70400) { + echo $g_failed. " ".phpversion()." ". _("Version PHP trop basse , minimum 7.4"); echo '

'; - printf(_("Il est déconseillé de travailler avec une version < 7.2")); + printf(_("Il est déconseillé de travailler avec une version < 7.4")); echo '

'; } else { echo $g_succeed. " Version PHP ".phpversion();