From 68d6c3b91137b4d42ea68c29d6b7ca57e38ded58 Mon Sep 17 00:00:00 2001 From: John Zhang Date: Sat, 16 Mar 2024 10:24:37 +0800 Subject: [PATCH] fixed ubuntu compatibility issues --- app/Admin/Controllers/DashboardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Admin/Controllers/DashboardController.php b/app/Admin/Controllers/DashboardController.php index fb235b1c8..ea9d367fb 100644 --- a/app/Admin/Controllers/DashboardController.php +++ b/app/Admin/Controllers/DashboardController.php @@ -63,7 +63,7 @@ public static function environment() } // PHP Version Check - $installedVersion=new Version(PHP_VERSION); + $installedVersion=new Version(explode("-", PHP_VERSION)[0]); $requireVersion=new Version("7.4.0"); if (!($installedVersion->isGreaterThan($requireVersion) || $installedVersion->getVersionString()===$requireVersion->getVersionString())) { $envs[0]['icon']="close-circle";