From 7e8bcc903401e8fb4b014ba0a58a7db1d655a054 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 26 Apr 2020 08:04:34 +0200 Subject: [PATCH] Update src/Model/Profile.php Co-Authored-By: Hypolite Petovan --- src/Model/Profile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 9311df83b6..e534741232 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -922,7 +922,8 @@ class Profile $searchTerm = '%' . $search . '%'; $profiles = DBA::p("SELECT * FROM `owner-view` - WHERE $publish AND NOT `blocked` AND NOT `account_removed` + WHERE NOT `blocked` AND NOT `account_removed` + $publish AND ((`name` LIKE ?) OR (`nickname` LIKE ?) OR (`about` LIKE ?) OR