Fix Page::isEmpty() accessing to Page::$filename before initialization

This commit is contained in:
Giuseppe Criscione 2021-07-19 19:43:21 +02:00
parent 78f8be9996
commit 1f09d170a7

View File

@ -215,7 +215,7 @@ class Page extends AbstractPage
*/
public function isEmpty(): bool
{
return $this->filename === null;
return !isset($this->filename);
}
/**