From 9122baa9d739e92443b48a9c356549299f4053b4 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 17 May 2023 20:35:45 +0000 Subject: [PATCH] Modules [Class]: Updates for PHP 8.1 --- app/modules/resources/classes/modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/resources/classes/modules.php b/app/modules/resources/classes/modules.php index 6018b74a89..a6d4018e31 100644 --- a/app/modules/resources/classes/modules.php +++ b/app/modules/resources/classes/modules.php @@ -741,7 +741,7 @@ if (!class_exists('modules')) { } } } - if (is_array($array) && @sizeof($array) != 0) { + if (!empty($array) && is_array($array) && @sizeof($array) != 0) { //grant temporary permissions $p = new permissions; $p->add('module_add', 'temp');