public function recalculate_fullhouse($event) { $slots = $this->event($event)->getSlots(); $this->event()->fullhouse = $slots > 0 ? null : 1; $this->event()->_guest_count = $this->event()->max_guests - $slots; $this->event()->save(); if ($this->event()->active == 1 || $this->event()->parent) { $lang = Bootstrap::$main->lang; foreach (Bootstrap::$main->langs() as $l) { Bootstrap::$main->lang = $l; if ($this->event()->parent) { $this->getPublicEvent($this->event()->parent, null, true); } else { $this->getPublicEvent($this->event()->data(), null, true); } } Bootstrap::$main->lang = $lang; $userController = new userController(); $userController->getPublicUser($this->event()->user, true); } }