mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-29 18:14:50 +08:00
Merge pull request #6524 from gggeek/gg/issue-6413-improved
DockerController: avoid php warning when id not in query string in GetLogs Route
This commit is contained in:
commit
061885c8e1
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