fix: check for null since str_starts_with is typed

This commit is contained in:
Marvin Flock
2025-06-17 22:01:07 +02:00
parent 5cfd8f3c1a
commit 36dbfdb7c4
@@ -71,7 +71,7 @@ if ($task == "spielerbild") {
terminDokument(); terminDokument();
} else if ($task == "spieler_details") { } else if ($task == "spieler_details") {
spielerDetails(); spielerDetails();
} else if (str_starts_with($task, "admin_")) { } else if ($task !== null && str_starts_with($task, "admin_")) {
// in some cases there are no breaks needed due to no return from method // in some cases there are no breaks needed due to no return from method
switch ($task) { switch ($task) {
case 'admin_einstellungen': case 'admin_einstellungen':