diff --git a/libraries/cms/layout/file.php b/libraries/cms/layout/file.php index 22031c9cc0610..765d5358c01d4 100644 --- a/libraries/cms/layout/file.php +++ b/libraries/cms/layout/file.php @@ -149,7 +149,7 @@ protected function getPath() $this->fullPath = JPath::find($this->includePaths, $rawPath); - if ($this->fullPath = JPath::find($this->includePaths, $rawPath)) + if ($this->fullPath) { $this->addDebugMessage('Found layout: ' . $this->fullPath); }