Fix: Make country name filter failure tolerant

This commit is contained in:
Björn Fromme committed 2023-10-12 15:08:47 +02:00
1 parent 541283fc34
commit 4b7afb109d
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ class AppRuntime implements RuntimeExtensionInterface
return sprintf('Offizielle %slehrer*innenlizenz', ucfirst(strtolower($type)));
}
public function bpnCountryLabel(string $token, string $property = 'name'): string
public function bpnCountryLabel(?string $token, string $property = 'name'): string
{
$country = $this->countries->get($token);