]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
Merge pull request #4618 from tobiasd/210180317-htconfig
[friendica.git] / mod / editpost.php
index af8f4e317926648f6a8d9ee31a92a7c1ce0b3357..3081b67293730250e5f4fde90f687f8db9b64405 100644 (file)
@@ -38,6 +38,8 @@ function editpost_content(App $a) {
                return;
        }
 
+       $geotag = '';
+
        $o .= replace_macros(get_markup_template("section_title.tpl"),[
                '$title' => L10n::t('Edit post')
        ]);
@@ -61,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 = '';
@@ -140,7 +143,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,