From d41004dd095f1ba6dd3d0c6162ed6740ce8db426 Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 28 Jul 2020 14:26:26 +0200 Subject: [PATCH] fixed undefined variable in compact php7.3 The compact function throws an error in php7.3 if one of the variables is not defined. This occured during the saving of roles --- models/rbacDB/AbstractItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/rbacDB/AbstractItem.php b/models/rbacDB/AbstractItem.php index fae8ae59..3559413c 100644 --- a/models/rbacDB/AbstractItem.php +++ b/models/rbacDB/AbstractItem.php @@ -267,7 +267,7 @@ public static function beforeAddChildren($parentName, $childrenNames, $throwExce public static function beforeRemoveChildren($parentName, $childrenNames) { - $event = new AbstractItemEvent(compact('parentName', 'childrenNames', 'throwException')); + $event = new AbstractItemEvent(compact('parentName', 'childrenNames')); $event->trigger(get_called_class(), self::EVENT_BEFORE_REMOVE_CHILDREN, $event); } }