diff --git a/Classes/Controller/LoginController.php b/Classes/Controller/LoginController.php index 0152036..1e92135 100644 --- a/Classes/Controller/LoginController.php +++ b/Classes/Controller/LoginController.php @@ -111,12 +111,9 @@ public function logoutAction() if (is_string($result)) { $this->redirectToUriAndShutdown($result); - } elseif ($result instanceof ActionRequest) { $this->redirectToRequest($result); - } - - if ($result === null) { + } else if ($result === null) { // Default: redirect to login $this->redirect('login'); } else { @@ -174,7 +171,6 @@ protected function redirectToUriAndShutdown(string $result) $response->setHeader('Status', '303'); $response->setContent(''); - $response->send(); $this->bootstrap->shutdown(Bootstrap::RUNLEVEL_RUNTIME); }