]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Model/Profile.php
authorMichael Vogel <icarus@dabo.de>
Sat, 25 Apr 2020 21:33:01 +0000 (23:33 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2020 21:33:01 +0000 (23:33 +0200)
Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
src/Model/Profile.php

index 24db78a00acedc86c3aa947d3eb2554933fdaaa9..dc7e02642ad3d1cb630ef0774252b7b691f6ec3a 100644 (file)
@@ -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)) {