From efd68bdb5f549a5be72402a9cf873b992408112a Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 22 Apr 2018 12:02:53 +0200 Subject: [PATCH] Profiler * fixed possible bug where a custom profile would load instead of the original character it was created from --- pages/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/profile.php b/pages/profile.php index 817f4b33..9bac1289 100644 --- a/pages/profile.php +++ b/pages/profile.php @@ -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) {