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) {