[evolvis-commits] r15231: Ensure factories return a list, even if empty
mirabilos at evolvis.org
mirabilos at evolvis.org
Mon Feb 28 23:50:33 CET 2011
Author: mirabilos
Date: 2011-02-28 23:50:33 +0100 (Mon, 28 Feb 2011)
New Revision: 15231
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumFactory.class.php
trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroupFactory.class.php
trunk/gforge_base/evolvisforge-5.1/gforge/common/tracker/ArtifactTypeFactory.class.php
Log:
Ensure factories return a list, even if empty
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumFactory.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumFactory.class.php 2011-02-28 22:50:31 UTC (rev 15230)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumFactory.class.php 2011-02-28 22:50:33 UTC (rev 15231)
@@ -96,6 +96,7 @@
return $this->forums;
}
+ $this->forums = array () ;
$ids = $this->getAllForumIds() ;
foreach ($ids as $id) {
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroupFactory.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroupFactory.class.php 2011-02-28 22:50:31 UTC (rev 15230)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroupFactory.class.php 2011-02-28 22:50:33 UTC (rev 15231)
@@ -96,6 +96,7 @@
return $this->projectGroups;
}
+ $this->projectGroups = array () ;
$ids = $this->getAllProjectGroupIds() ;
foreach ($ids as $id) {
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/tracker/ArtifactTypeFactory.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/tracker/ArtifactTypeFactory.class.php 2011-02-28 22:50:31 UTC (rev 15230)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/tracker/ArtifactTypeFactory.class.php 2011-02-28 22:50:33 UTC (rev 15231)
@@ -109,6 +109,7 @@
return $this->ArtifactTypes;
}
+ $this->ArtifactTypes = array () ;
$ids = $this->getAllArtifactTypeIds() ;
foreach ($ids as $id) {
More information about the evolvis-commits
mailing list