aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-08 22:20:45 -0700
committerredmatrix <mike@macgirvin.com>2016-09-08 22:20:45 -0700
commit956dab69b480fbc91a1735b66c0cf46a98d334ef (patch)
tree179a7484fc21bccd9a59a54a0860d188a466f6bb /include/conversation.php
parentabaf752a9bd79a2856bd6acbf16cb62a7f770018 (diff)
downloadvolse-hubzilla-956dab69b480fbc91a1735b66c0cf46a98d334ef.tar.gz
volse-hubzilla-956dab69b480fbc91a1735b66c0cf46a98d334ef.tar.bz2
volse-hubzilla-956dab69b480fbc91a1735b66c0cf46a98d334ef.zip
illegal offset errors in include/conversation:status_editor() when no permissions array is passed
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index f06016966..e515fb26a 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1213,6 +1213,10 @@ function status_editor($a, $x, $popup = false) {
if(! $cipher)
$cipher = 'aes256';
+ // avoid illegal offset errors
+ if(! array_key_exists('permissions',$x))
+ $x['permissions'] = [ 'allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '' ];
+
$jotplugins = '';
call_hooks('jot_tool', $jotplugins);