From ba15638cda8a340fb0cb272f31162dc73d8026bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vosla=C5=99?= Date: Fri, 19 Feb 2016 12:04:40 +0100 Subject: [PATCH] Update BasePresenter.php --- FrontendModule/presenters/BasePresenter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FrontendModule/presenters/BasePresenter.php b/FrontendModule/presenters/BasePresenter.php index 5cbe4332..3c1e8ceb 100755 --- a/FrontendModule/presenters/BasePresenter.php +++ b/FrontendModule/presenters/BasePresenter.php @@ -230,8 +230,8 @@ protected function startup() if ($id) { $this->actualPage = $this->em->find('WebCMS\Entity\Page', $id); - if ($redirectUrl = $this->actualPage->getRedirect() != NULL) { - if (strpos($redirectUrl, 'http') === false) { + if ($this->actualPage->getRedirect() != NULL) { + if (strpos($this->actualPage->getRedirect(), 'http') === false) { $this->redirectUrl($this->presenter->getHttpRequest()->url->baseUrl . $this->actualPage->getRedirect()); } else { $this->redirectUrl($this->actualPage->getRedirect());