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

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