Update src/Model/Profile.php
Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
e012730e52
commit
7f17c1484a
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue