the lockstate should be now correct in editpost_content()

This commit is contained in:
rabuzarus 2018-02-12 22:26:25 +01:00
parent abe0d8355a
commit 2f8d78fd9f

View file

@ -63,10 +63,11 @@ function editpost_content(App $a) {
$tpl = get_markup_template("jot.tpl"); $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'; $lockstate = 'lock';
else } else {
$lockstate = 'unlock'; $lockstate = 'unlock';
}
$jotplugins = ''; $jotplugins = '';
$jotnets = ''; $jotnets = '';