From: rabuzarus Date: Mon, 12 Feb 2018 21:26:25 +0000 (+0100) Subject: the lockstate should be now correct in editpost_content() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f8d78fd9f2039ebd8aa1acfa363c5cb06d37b7f;p=friendica.git the lockstate should be now correct in editpost_content() --- diff --git a/mod/editpost.php b/mod/editpost.php index f28e7a50b8..86099e7457 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -63,10 +63,11 @@ function editpost_content(App $a) { $tpl = get_markup_template("jot.tpl"); - if(($group) || (is_array($a->user) && ((strlen($a->user['allow_cid'])) || (strlen($a->user['allow_gid'])) || (strlen($a->user['deny_cid'])) || (strlen($a->user['deny_gid']))))) + if (strlen($itm['allow_cid']) || strlen($itm['allow_gid']) || strlen($itm['deny_cid']) || strlen($itm['deny_gid'])) { $lockstate = 'lock'; - else + } else { $lockstate = 'unlock'; + } $jotplugins = ''; $jotnets = '';