Profiler/Custom
* fixed deleted profiles counting towards the user cap of 10
This commit is contained in:
parent
9f8c643cf4
commit
0f9a3e8cb6
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ class AjaxProfile extends AjaxHandler
|
|||
}
|
||||
else // new
|
||||
{
|
||||
$nProfiles = DB::Aowow()->selectCell('SELECT COUNT(*) FROM ?_profiler_profiles WHERE user = ?d AND realmGUID IS NULL', User::$id);
|
||||
$nProfiles = DB::Aowow()->selectCell('SELECT COUNT(*) FROM ?_profiler_profiles WHERE user = ?d AND (cuFlags & ?d) = 0 AND realmGUID IS NULL', User::$id, PROFILER_CU_DELETED);
|
||||
if ($nProfiles < 10 || User::isPremium())
|
||||
if ($newId = DB::Aowow()->query('INSERT INTO ?_profiler_profiles (?#) VALUES (?a)', array_keys($cuProfile), array_values($cuProfile)))
|
||||
$charId = $newId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue