diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc index da090ca..f5730b4 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc @@ -130,9 +130,13 @@ function renderFolderResults($aResults) { global $default; $sToRender = ""; // now loop through the rest of the folders and display links - for ($i=1; $i" . $sRow . "\n"; + if (count($aResults["folders"]) > 1) { + for ($i=1; $i" . $sRow . "\n"; + } + } else { + $sToRender .= "This folder contains no sub folders"; } $sToRender .= " "; @@ -143,8 +147,12 @@ function renderFolderResults($aResults) { function renderDocumentList($aDocuments, $bDisplayFullPath = false) { // loop through the files and display links - for ($i=0; $i" . displayDocumentLink($aDocuments[$i], $bDisplayFullPath) . ""; + if (count($aDocuments) > 0) { + for ($i=0; $i" . displayDocumentLink($aDocuments[$i], $bDisplayFullPath) . ""; + } + } else { + $sToRender .= "This folder contains no documents"; } return $sToRender; }