Browse Source

Fix up bool check.

mscherer 9 years ago
parent
commit
7dbbfa1241
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Controller/Component/RequestHandlerComponent.php

+ 1 - 1
src/Controller/Component/RequestHandlerComponent.php

@@ -260,7 +260,7 @@ class RequestHandlerComponent extends Component
      */
      */
     public function beforeRedirect(Event $event, $url, Response $response)
     public function beforeRedirect(Event $event, $url, Response $response)
     {
     {
-        if ($this->config('enableBeforeRedirect') == false) {
+        if (!$this->config('enableBeforeRedirect')) {
             return null;
             return null;
         }
         }
         $request = $this->request;
         $request = $this->request;