mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-22 16:56:50 +01:00
Fix Page::isEmpty()
accessing to Page::$filename
before initialization
This commit is contained in:
parent
78f8be9996
commit
1f09d170a7
@ -215,7 +215,7 @@ class Page extends AbstractPage
|
||||
*/
|
||||
public function isEmpty(): bool
|
||||
{
|
||||
return $this->filename === null;
|
||||
return !isset($this->filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user