mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
call hook folderListSeparator only if documents and folders exist
This commit is contained in:
parent
a79b43557f
commit
6af5de2f52
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user