Merge pull request #7208 from nupplaphil/bug/6916-filetag

Adding null checks before FileTag method (fix fatal)
This commit is contained in:
Hypolite Petovan 2019-05-31 01:47:52 -04:00 committed by GitHub
commit f0de19dd8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -40,7 +40,7 @@ class SaveTag extends BaseModule
}
// return filer dialog
$filetags = PConfig::get(local_user(), 'system', 'filetags');
$filetags = PConfig::get(local_user(), 'system', 'filetags', '');
$filetags = Model\FileTag::fileToArray($filetags);
$tpl = Renderer::getMarkupTemplate("filer_dialog.tpl");