From ab1e9781ebfeb83aaa18066260cc895ba69d58ed Mon Sep 17 00:00:00 2001 From: Dmytro Novash Date: Tue, 18 Jun 2024 01:20:41 +0300 Subject: [PATCH 1/2] fix for php 7.4 --- src/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.php b/src/main.php index aa2dd51..94b0c75 100644 --- a/src/main.php +++ b/src/main.php @@ -771,7 +771,7 @@ f00bar; try { chmod($d["filename"], (int)octdec($chmod)); return ["status" => "OK", "message" => $this->l('permission_change_success')]; - } catch (Exception) { + } catch (Exception $e) { throw new IFMException($this->l('permission_change_error')); } } else From 61716ad2dd40d7883a580c9a2d1e6c47c468c381 Mon Sep 17 00:00:00 2001 From: Dmytro Novash Date: Tue, 18 Jun 2024 01:31:00 +0300 Subject: [PATCH 2/2] increase min version (5.6 not working with ?? operator) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b49a2d..acd5be3 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The IFM uses the following resources: + HTML5 and CSS3 compatible browser + activated javascript * Server - + PHP >= 5.6 + + PHP >= 7.0 + extensions - bz2 - curl (for remote upload)