]> git.mxchange.org Git - friendica.git/commitdiff
the lockstate should be now correct in editpost_content()
authorrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 21:26:25 +0000 (22:26 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 21:26:25 +0000 (22:26 +0100)
mod/editpost.php

index f28e7a50b845034980e49f0d18321c40f06c6aba..86099e74575e1125db89215c35aa9c29c48e8c8f 100644 (file)
@@ -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 = '';