call hook folderListSeparator only if documents and folders exist

This commit is contained in:
Uwe Steinmann 2017-03-14 06:52:37 +01:00
parent a79b43557f
commit 6af5de2f52

View File

@ -310,9 +310,11 @@ function folderSelected(id, name) {
}
}
$txt = $this->callHook('folderListSeparator', $folder);
if(is_string($txt))
echo $txt;
if($subFolders && $documents) {
$txt = $this->callHook('folderListSeparator', $folder);
if(is_string($txt))
echo $txt;
}
foreach($documents as $document) {
$document->verifyLastestContentExpriry();