Update src/Model/Profile.php
authorMichael Vogel <icarus@dabo.de>
Sun, 26 Apr 2020 06:04:03 +0000 (08:04 +0200)
committerGitHub <noreply@github.com>
Sun, 26 Apr 2020 06:04:03 +0000 (08:04 +0200)
Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
src/Model/Profile.php

index d834024..261c7cc 100644 (file)
@@ -893,7 +893,8 @@ class Profile
                if (!empty($search)) {
                        $searchTerm = '%' . $search . '%';
                        $cnt = DBA::fetchFirst("SELECT COUNT(*) AS `total` 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