diff --git a/includes/types/profile.class.php b/includes/types/profile.class.php index aa98f29a..0fd5a2ae 100644 --- a/includes/types/profile.class.php +++ b/includes/types/profile.class.php @@ -340,7 +340,7 @@ class ProfileListFilter extends Filter // table key differs between remote and local :< $k = $this->useLocalList ? 'p' : 'c'; - // name [str] - the table is case sensitive. Since i down't want to destroy indizes, lets alter the search terms + // name [str] - the table is case sensitive. Since i don't want to destroy indizes, lets alter the search terms if (!empty($_v['na'])) { $lower = $this->modularizeString([$k.'.name'], Util::lower($_v['na']), !empty($_v['ex']) && $_v['ex'] == 'on', true); diff --git a/pages/profile.php b/pages/profile.php index e264bb92..fd216101 100644 --- a/pages/profile.php +++ b/pages/profile.php @@ -230,7 +230,7 @@ class ProfilePage extends GenericPage private function handleIncompleteData($params, $guid) { - if ($this->mode == CACHE_TYPE_TOOLTIP) // enable tooltip display with basic data we just added + if ($this->mode == CACHE_TYPE_TOOLTIP) // enable tooltip display with basic data we just added { $this->subject = new LocalProfileList(array(['id', $this->subjectGUID]), ['sv' => $params[1]]); if ($this->subject->error) @@ -238,15 +238,18 @@ class ProfilePage extends GenericPage $this->profile = $params; } - else // display empty page and queue status + else // display empty page and queue status { $this->mode = CACHE_TYPE_NONE; // queue full fetch - $newId = Profiler::scheduleResync(Type::PROFILE, $this->realmId, $guid); - - $this->doResync = ['profile', $newId]; - $this->initialSync(); + if ($newId = Profiler::scheduleResync(Type::PROFILE, $this->realmId, $guid)) + { + $this->doResync = ['profile', $newId]; + $this->initialSync(); + } + else // todo: base info should have been created in __construct .. why are we here..? + header('Location: ?profiles='.$params[0].'.'.$params[1].'&filter=na='.Util::ucFirst($this->subjectName).';ex=on'); } } }