diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-11-06 23:28:44 +0100 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-11-10 21:28:35 +0100 |
commit | 6cf3ebb7dbf813d92342d0350078edbcd5050e9c (patch) | |
tree | 36dfd51a68fb26252bee7957861acb1d3f240e70 /Zotlabs | |
parent | c571ca40d7cb6642ce7243c3f6cc09b9c7a29ad8 (diff) | |
download | volse-hubzilla-6cf3ebb7dbf813d92342d0350078edbcd5050e9c.tar.gz volse-hubzilla-6cf3ebb7dbf813d92342d0350078edbcd5050e9c.tar.bz2 volse-hubzilla-6cf3ebb7dbf813d92342d0350078edbcd5050e9c.zip |
: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().
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Access/Permissions.php | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |