From 2817ddf971c8f4ddcf549152a531553dfffa0cc7 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 28 Nov 2005 20:14:08 +0000 Subject: [PATCH] folderCount is now returned as an integer, not an array. --- lib/browse/DocumentCollection.inc.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/browse/DocumentCollection.inc.php b/lib/browse/DocumentCollection.inc.php index 2065a6e..15ee6ec 100644 --- a/lib/browse/DocumentCollection.inc.php +++ b/lib/browse/DocumentCollection.inc.php @@ -97,8 +97,6 @@ class DocumentCollection { // we get back strings of numbers. $this->folderCount = $this->_queryObj->getFolderCount(); - - $this->folderCount = $this->folderCount[0]; // sigh. $this->documentCount = $this->_queryObj->getDocumentCount(); $this->documentCount = $this->documentCount[0]; $this->itemCount = $this->documentCount + $this->folderCount; @@ -136,8 +134,7 @@ class DocumentCollection { } } - - + $this->activeset = array( "folders" => $folderSet, "documents" => $documentSet, @@ -212,4 +209,4 @@ class DocumentCollection { } } -?> \ No newline at end of file +?> -- libgit2 0.21.4