diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index 608159971..76ff6502e 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -404,10 +404,17 @@ class ActionController extends Zend_Controller_Action protected function redirectXhr($url) { - $this->getResponse() - ->setReloadCss($this->reloadCss) - ->setRerenderLayout($this->rerenderLayout) - ->redirectAndExit($url); + $response = $this->getResponse(); + + if ($this->reloadCss) { + $response->setReloadCss(true); + } + + if ($this->rerenderLayout) { + $response->setRerenderLayout(true); + } + + $response->redirectAndExit($url); } protected function redirectHttp($url)