Skip to content

Commit

Permalink
Update event_date.php
Browse files Browse the repository at this point in the history
  • Loading branch information
schorschy committed Nov 24, 2023
1 parent 1de9eac commit bc24245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/event_date.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static function generateuuid($id = null) :string
return uuid::uuid3(uuid::NAMESPACE_URL, $id);
}

public function getCategory(): object
public function getCategory(): ?rex_yform_manager_collection
{
$this->category = event_category::get((int)$this->getValue('event_category_id'));
return $this->category;
Expand Down Expand Up @@ -279,7 +279,7 @@ public function getIcon(): string
}
}

public function getRegistrationPerson($status = 0, $operator = ">="): object
public function getRegistrationPerson($status = 0, $operator = ">="): ?rex_yform_manager_collection
{
return event_registration_person::query()->where('status', $status, $operator)->where('event_date_id', self::getId())->find();
}
Expand Down

0 comments on commit bc24245

Please sign in to comment.