From 9c68cb4e74eefdd201c60d87b6a9b044036bb5f3 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 19 Dec 2024 22:33:11 +0900 Subject: [PATCH] Check for existence of more functions before installation --- modules/install/install.controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/install/install.controller.php b/modules/install/install.controller.php index ccc206b64..8e1e7c995 100644 --- a/modules/install/install.controller.php +++ b/modules/install/install.controller.php @@ -337,7 +337,7 @@ class installController extends install } // Check curl - if(function_exists('curl_init')) + if(function_exists('curl_init') && function_exists('curl_exec')) { $checklist['curl'] = true; } @@ -347,7 +347,7 @@ class installController extends install } // Check GD - if(function_exists('imagecreatefromgif')) + if(function_exists('imagecreatefromjpeg') && function_exists('imagecreatefrompng')) { $checklist['gd'] = true; } @@ -367,7 +367,7 @@ class installController extends install } // Check json - if(function_exists('json_encode')) + if(function_exists('json_encode') && function_exists('json_decode')) { $checklist['json'] = true; }