From fb81d266bd61ab33d251d2ae68afb57d13c4f31b Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Tue, 13 Feb 2018 01:20:16 +0100 Subject: [PATCH] declare $bang variable in editpost_content() --- mod/editpost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/editpost.php b/mod/editpost.php index 86099e7457..3081b67293 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -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, -- 2.39.5