generateError(); } protected function generate() : void { // just so the form does not break. There won't be any results. $usedRegions = array_column(Profiler::getRealms(), 'region') ?: ['us']; foreach (Util::$regions as $idx => $id) if (in_array($id, $usedRegions)) $this->regions[$id] = [Lang::profiler('regions', $id), $idx + 1]; if (!in_array($this->rg, $usedRegions)) $this->rg = key($this->regions); array_unshift($this->title, Util::ucFirst(Lang::profiler('profiler'))); parent::generate(); } } ?>