* fixed possible bug where a custom profile would load instead of the original character it was created from
This commit is contained in:
Sarjuuk
2018-04-22 12:02:53 +02:00
parent d0b7fa9ef5
commit efd68bdb5f

View File

@@ -79,7 +79,7 @@ class ProfilePage extends GenericPage
// 3 possibilities
// 1) already synced to aowow
if ($subject = DB::Aowow()->selectRow('SELECT id, realmGUID, cuFlags FROM ?_profiler_profiles WHERE realm = ?d AND name = ?', $this->realmId, Util::ucFirst($this->subjectName)))
if ($subject = DB::Aowow()->selectRow('SELECT id, realmGUID, cuFlags FROM ?_profiler_profiles WHERE realm = ?d AND realmGUID IS NOT NULL AND name = ?', $this->realmId, Util::ucFirst($this->subjectName)))
{
if ($subject['cuFlags'] & PROFILER_CU_NEEDS_RESYNC)
{