From 04400257daf6ca3fd27b9dfc67deb7265ea6666a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Andr=C3=A9s?= Date: Wed, 14 Jun 2023 21:26:35 -0600 Subject: [PATCH] Dont set a reason if nothing changed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Diego Andrés --- Sources/Post.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Post.php b/Sources/Post.php index 9be6ebe624..9525d0cbd9 100644 --- a/Sources/Post.php +++ b/Sources/Post.php @@ -3208,7 +3208,12 @@ function JavaScriptModify() } // If nothing was changed there's no need to add an entry to the moderation log. else + { $moderationAction = false; + + // Clear the reason + $msgOptions['modify_reason'] = ''; + } modifyPost($msgOptions, $topicOptions, $posterOptions);