illegal offset errors in include/conversation:status_editor() when no permissions array is passed

This commit is contained in:
redmatrix 2016-09-08 22:20:45 -07:00
parent abaf752a9b
commit 956dab69b4

View File

@ -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);