From 2f8d78fd9f2039ebd8aa1acfa363c5cb06d37b7f Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Mon, 12 Feb 2018 22:26:25 +0100 Subject: [PATCH] the lockstate should be now correct in editpost_content() --- mod/editpost.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 = ''; -- 2.39.5