fix for deprecation notice

Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
Andy Miller
2025-10-29 09:26:34 +00:00
parent 00be4faee1
commit 9078633b73

View File

@@ -47,8 +47,9 @@ class LoginRouter
];
}
$httpMethod = $request->getMethod();
$template = $this->taskTemplates[$task] ?? $adminInfo['view'];
$httpMethod = $request->getMethod() ?? '';
$template = $this->taskTemplates[$task ?? ''] ?? $adminInfo['view'];
$params = [];
switch ($template) {