]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
removed one line too much
[friendica.git] / mod / editpost.php
index f28e7a50b845034980e49f0d18321c40f06c6aba..aa2c296845c95ce7d3dd34f201fa48024a703854 100644 (file)
@@ -10,8 +10,6 @@ use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 
-require_once 'include/acl_selectors.php';
-
 function editpost_content(App $a) {
 
        $o = '';
@@ -63,10 +61,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 = '';
@@ -142,7 +141,7 @@ function editpost_content(App $a) {
                '$emtitle' => L10n::t('Example: bob@example.com, mary@example.com'),
                '$lockstate' => $lockstate,
                '$acl' => '', // populate_acl((($group) ? $group_acl : $a->user)),
-               '$bang' => (($group) ? '!' : ''),
+               '$bang' => ($lockstate === 'lock' ? '!' : ''),
                '$profile_uid' => $_SESSION['uid'],
                '$preview' => L10n::t('Preview'),
                '$jotplugins' => $jotplugins,