From 6af5de2f52bd64d315a05c4b3f32f4c58acbb289 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 14 Mar 2017 06:52:37 +0100 Subject: [PATCH] call hook folderListSeparator only if documents and folders exist --- views/bootstrap/class.ViewFolder.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php index 93b72ef05..f2388c7a1 100644 --- a/views/bootstrap/class.ViewFolder.php +++ b/views/bootstrap/class.ViewFolder.php @@ -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();