From cfd5cc5f1f4c4ecd5f0fde583148f849c20b7b36 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Tue, 14 Nov 2023 07:37:24 +0000 Subject: [PATCH] fixes #3456 Closes #3456 Merge request studip/studip!2352 --- lib/classes/ForumEntry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/ForumEntry.php b/lib/classes/ForumEntry.php index cc0e9595832..f98e59cd7a1 100644 --- a/lib/classes/ForumEntry.php +++ b/lib/classes/ForumEntry.php @@ -815,7 +815,7 @@ class ForumEntry implements PrivacyObject } if ($options['search_author']) { - $zw_search_string[] = "author LIKE " . DBManager::get()->quote($search_word); + $zw_search_string[] = "(anonymous = 0 AND author LIKE " . DBManager::get()->quote($search_word) . ')'; } if (!empty($zw_search_string)) { -- GitLab