mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +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($subFolders && $documents) {
|
||||||
if(is_string($txt))
|
$txt = $this->callHook('folderListSeparator', $folder);
|
||||||
echo $txt;
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
|
}
|
||||||
|
|
||||||
foreach($documents as $document) {
|
foreach($documents as $document) {
|
||||||
$document->verifyLastestContentExpriry();
|
$document->verifyLastestContentExpriry();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user