Skip to content

Commit

Permalink
Merge pull request #34 from netlogix/bugfix/backend-module
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanowak authored Oct 22, 2024
2 parents c5988af + 5a99f91 commit 1a3c7f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Controller/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ protected function getModuleTemplateResponse(): ResponseInterface
return $this->htmlResponse($this->moduleTemplate->renderContent());
}

public function indexAction(int $id): ResponseInterface
public function indexAction(): ResponseInterface
{
$id = (int) ($this->request->getQueryParams()['id'] ?? 0);

if (!$this->settings['enabled']) {
return $this->forwardToErrorWithCannedMessage('disabled');
}
Expand Down

0 comments on commit 1a3c7f9

Please sign in to comment.