diff --git a/core/lib/Drupal/Core/Path/PathMatcher.php b/core/lib/Drupal/Core/Path/PathMatcher.php index be55668..95c56dd 100644 --- a/core/lib/Drupal/Core/Path/PathMatcher.php +++ b/core/lib/Drupal/Core/Path/PathMatcher.php @@ -19,7 +19,7 @@ class PathMatcher implements PathMatcherInterface { * * @var bool */ - protected $isCurrentFrontPage = FALSE; + protected $isCurrentFrontPage; /** * The default front page. @@ -83,7 +83,7 @@ public function matchPath($path, $patterns) { */ public function isFrontPage() { // Cache the result as this is called often. - if (!$this->isCurrentFrontPage) { + if (!isset($this->isCurrentFrontPage)) { $this->isCurrentFrontPage = (current_path() == $this->getFrontPagePath()); } return $this->isCurrentFrontPage;