aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Access')
-rw-r--r--Zotlabs/Access/AccessList.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Access/AccessList.php b/Zotlabs/Access/AccessList.php
index af6c4b7a6..790ef4745 100644
--- a/Zotlabs/Access/AccessList.php
+++ b/Zotlabs/Access/AccessList.php
@@ -139,6 +139,11 @@ class AccessList {
* @param boolean $explicit (optional) default true
*/
function set_from_array($arr, $explicit = true) {
+ $arr['contact_allow'] = $arr['contact_allow'] ?? [];
+ $arr['group_allow'] = $arr['group_allow'] ?? [];
+ $arr['contact_deny'] = $arr['contact_deny'] ?? [];
+ $arr['group_deny'] = $arr['group_deny'] ?? [];
+
$this->allow_cid = perms2str((is_array($arr['contact_allow']))
? $arr['contact_allow'] : explode(',', $arr['contact_allow']));
$this->allow_gid = perms2str((is_array($arr['group_allow']))