Commit 83562d627d65749e9f653c0eedbed51097e37ee7

Authored by michael
1 parent 0d997d01

corrected grammar for no documents|folders


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2773 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
... ... @@ -317,8 +317,8 @@ function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessa
317 317 function appendCounts($aFolderPath, $iFolderCount, $iDocumentCount) {
318 318 // append to the last path component and return
319 319 $aFolderPath[count($aFolderPath)-1] = $aFolderPath[count($aFolderPath)-1] .
320   - " ($iFolderCount folder" . ($iFolderCount > 1 ? "s" : "") .
321   - ", $iDocumentCount document" . ($iDocumentCount > 1 ? "s" : "") . ")";
  320 + " ($iFolderCount folder" . (($iFolderCount > 1) || ($iFolderCount == 0) ? "s" : "") .
  321 + ", $iDocumentCount document" . (($iDocumentCount > 1) || ($iDocumentCount == 0) ? "s" : "") . ")";
322 322 return $aFolderPath;
323 323 }
324 324  
... ...