mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-10-03 03:56:38 +08:00
DockerController: avoid php warning when id not in query string in GetLogs Route
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
2152d3544a
commit
1c5cc164c0
1 changed files with 5 additions and 1 deletions
|
@ -62,7 +62,11 @@ readonly class DockerController {
|
|||
|
||||
public function GetLogs(Request $request, Response $response, array $args) : Response
|
||||
{
|
||||
$id = $request->getQueryParams()['id'];
|
||||
$requestParams = $request->getQueryParams();
|
||||
$id = '';
|
||||
if (is_string($requestParams['id'])) {
|
||||
$id = $requestParams['id'];
|
||||
}
|
||||
if (str_starts_with($id, 'nextcloud-aio-')) {
|
||||
$logs = $this->dockerActionManager->GetLogs($id);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue