From: Michael Vogel Date: Sat, 25 Apr 2020 21:33:01 +0000 (+0200) Subject: Update src/Model/Profile.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f17c1484a2529f5561e2c74d51d66fbd6ee9aa6;p=friendica.git Update src/Model/Profile.php Co-Authored-By: Hypolite Petovan --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 24db78a00a..dc7e02642a 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -887,7 +887,7 @@ class Profile */ public static function searchProfiles($start = 0, $count = 100, $search = null) { - $publish = (DI::config()->get('system', 'publish_all') ? 'true' : "`publish` = 1"); + $publish = (DI::config()->get('system', 'publish_all') ? '' : "AND `publish` = 1"); $total = 0; if (!empty($search)) {