Profiler/Profiles

* do not display deleted custom profiles in their parent profiles quick info
This commit is contained in:
Sarjuuk
2018-04-28 12:03:52 +02:00
parent c5e9762830
commit 808bbcc2fd

View File

@@ -528,7 +528,7 @@ class AjaxProfile extends AjaxHandler
$profile['pets'] = $pets;
// source for custom profiles; profileId => [name, ownerId, iconString(optional)]
if ($customs = DB::Aowow()->select('SELECT id AS ARRAY_KEY, name, user, icon FROM ?_profiler_profiles WHERE sourceId = ?d AND sourceId <> id', $pBase['id']))
if ($customs = DB::Aowow()->select('SELECT id AS ARRAY_KEY, name, user, icon FROM ?_profiler_profiles WHERE sourceId = ?d AND sourceId <> id {AND (cuFlags & ?d) = 0}', $pBase['id'], User::isInGroup(U_GROUP_STAFF) ? DBSIMPLE_SKIP : PROFILER_CU_DELETED))
{
foreach ($customs as $id => $cu)
{