]> git.mxchange.org Git - friendica.git/commitdiff
declare $bang variable in editpost_content()
authorrabuzarus <rabuzarus@t-online.de>
Tue, 13 Feb 2018 00:20:16 +0000 (01:20 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Tue, 13 Feb 2018 00:20:16 +0000 (01:20 +0100)
mod/editpost.php

index 86099e74575e1125db89215c35aa9c29c48e8c8f..3081b67293730250e5f4fde90f687f8db9b64405 100644 (file)
@@ -143,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,