Skip to content
Snippets Groups Projects
Commit 7e955aed authored by Moritz Strohm's avatar Moritz Strohm
Browse files

VirtualFolderType::__get: check for existance before returning the value of...

VirtualFolderType::__get: check for existance before returning the value of the requested array index, fixes #2974
parent 6c0adf4e
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ class VirtualFolderType implements FolderType ...@@ -87,7 +87,7 @@ class VirtualFolderType implements FolderType
*/ */
public function __get($attribute) public function __get($attribute)
{ {
return $this->folderdata[$attribute]; return $this->folderdata[$attribute] ?? null;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment