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

VirtualFolderType constructor: make sure the description field is initialised...

VirtualFolderType constructor: make sure the description field is initialised with an empty string if it isn't there, re #2986

Merge request studip/studip!2002
parent 34b08194
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,11 @@ class VirtualFolderType implements FolderType
public function __construct($folderdata = [], $plugin_id = null)
{
$this->folderdata = $folderdata;
//Make sure the description field is not empty so that folders
//of this type are compatible with StandardFolder types:
if (empty($this->folderdata['description'])) {
$this->folderdata['description'] = '';
}
$this->plugin_id = $plugin_id;
}
......
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