From f28659a025114094b5cfacba56bd46927ac21554 Mon Sep 17 00:00:00 2001 From: Tsvetan Koshutanski Date: Thu, 25 Mar 2021 17:22:05 +0200 Subject: [PATCH] Check variable is of type array before using it For PHP 7.4 --- src/mibew/libs/groups.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mibew/libs/groups.php b/src/mibew/libs/groups.php index 3c6836f1..a9756d9b 100644 --- a/src/mibew/libs/groups.php +++ b/src/mibew/libs/groups.php @@ -76,6 +76,10 @@ function group_by_name($name) */ function get_group_name($group) { + if (!is_array($group)) { + return null; + } + $use_local_name = (get_home_locale() == get_current_locale()) || !isset($group['vccommonname']) || !$group['vccommonname'];