From 6cf3ebb7dbf813d92342d0350078edbcd5050e9c Mon Sep 17 00:00:00 2001 From: Klaus Weidenbach Date: Mon, 6 Nov 2017 23:28:44 +0100 Subject: :ok_hand: Fix a PHP warning in Permissions::FilledPerms(). When NULL is passed as parameter there is a PHP warning when testing against it in the function in_array(). --- Zotlabs/Access/Permissions.php | 1 + 1 file changed, 1 insertion(+) (limited to 'Zotlabs/Access') diff --git a/Zotlabs/Access/Permissions.php b/Zotlabs/Access/Permissions.php index 20ce21238..bca40a9c1 100644 --- a/Zotlabs/Access/Permissions.php +++ b/Zotlabs/Access/Permissions.php @@ -127,6 +127,7 @@ class Permissions { static public function FilledPerms($arr) { if(is_null($arr)) { btlogger('FilledPerms: null'); + $arr = []; } $everything = self::Perms(); -- cgit v1.2.3