[evolvis-commits] r17722: unbreak getting extrafields with no filter (php bug!)

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Nov 24 17:26:09 CET 2011


Author: mirabilos
Date: 2011-11-24 17:26:09 +0100 (Thu, 24 Nov 2011)
New Revision: 17722

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php
Log:
unbreak getting extrafields with no filter (php bug!)

broken in svn revno: 17584 (on /trunk/gforge_base/evolvisforge-5.1)


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php	2011-11-24 16:26:05 UTC (rev 17721)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php	2011-11-24 16:26:09 UTC (rev 17722)
@@ -604,8 +604,12 @@
 	 *	@return arrays of data;
 	 */
 	function getExtraFields($types=array()) {
-		$filter=implode (',',$types);
-		$types = explode(',', $filter);
+		if (count($types)) {
+			$filter = implode(',', $types);
+			$types = explode(',', $filter);
+		} else {
+			$filter = "";
+		}
 		if (!isset($this->extra_fields["$filter"])) {
 			$this->extra_fields["$filter"] = array();
 			if (count($types)) {



More information about the evolvis-commits mailing list