DockerController: also fix warning in the web interface

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-06-11 15:13:02 +02:00
parent b3f931f2cf
commit 0d4081ab13

View File

@ -64,7 +64,7 @@ readonly class DockerController {
{ {
$requestParams = $request->getQueryParams(); $requestParams = $request->getQueryParams();
$id = ''; $id = '';
if (is_string($requestParams['id'])) { if (isset($requestParams['id']) && is_string($requestParams['id'])) {
$id = $requestParams['id']; $id = $requestParams['id'];
} }
if (str_starts_with($id, 'nextcloud-aio-')) { if (str_starts_with($id, 'nextcloud-aio-')) {