illegal offset errors in include/conversation:status_editor() when no permissions array is passed
This commit is contained in:
parent
abaf752a9b
commit
956dab69b4
@ -1213,6 +1213,10 @@ function status_editor($a, $x, $popup = false) {
|
|||||||
if(! $cipher)
|
if(! $cipher)
|
||||||
$cipher = 'aes256';
|
$cipher = 'aes256';
|
||||||
|
|
||||||
|
// avoid illegal offset errors
|
||||||
|
if(! array_key_exists('permissions',$x))
|
||||||
|
$x['permissions'] = [ 'allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '' ];
|
||||||
|
|
||||||
$jotplugins = '';
|
$jotplugins = '';
|
||||||
call_hooks('jot_tool', $jotplugins);
|
call_hooks('jot_tool', $jotplugins);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user