Commit 2817ddf971c8f4ddcf549152a531553dfffa0cc7

Authored by nbm
1 parent 6660281f

folderCount is now returned as an integer, not an array.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4233 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/browse/DocumentCollection.inc.php
... ... @@ -97,8 +97,6 @@ class DocumentCollection {
97 97 // we get back strings of numbers.
98 98 $this->folderCount = $this->_queryObj->getFolderCount();
99 99  
100   -
101   - $this->folderCount = $this->folderCount[0]; // sigh.
102 100 $this->documentCount = $this->_queryObj->getDocumentCount();
103 101 $this->documentCount = $this->documentCount[0];
104 102 $this->itemCount = $this->documentCount + $this->folderCount;
... ... @@ -136,8 +134,7 @@ class DocumentCollection {
136 134 }
137 135  
138 136 }
139   -
140   -
  137 +
141 138 $this->activeset = array(
142 139 "folders" => $folderSet,
143 140 "documents" => $documentSet,
... ... @@ -212,4 +209,4 @@ class DocumentCollection {
212 209 }
213 210 }
214 211  
215   -?>
216 212 \ No newline at end of file
  213 +?>
... ...