Update src/Model/Profile.php

Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2020-04-25 23:33:01 +02:00 committed by GitHub
parent e012730e52
commit 7f17c1484a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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)) {