[evolvis-commits] r6519: - indexes in the return array of a function now has a name instead of a number .

papel at evolvis.org papel at evolvis.org
Thu Apr 8 10:22:04 CEST 2010


Author: papel
Date: 2010-04-08 08:22:03 +0000 (Thu, 08 Apr 2010)
New Revision: 6519

Modified:
   trunk/gforge_base/gforge-4.8.1+evolvis/common/pm/ProjectTaskSqlQueries.class.php
Log:
- indexes in the return array of a function now has a name instead of a number.

Modified: trunk/gforge_base/gforge-4.8.1+evolvis/common/pm/ProjectTaskSqlQueries.class.php
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/common/pm/ProjectTaskSqlQueries.class.php	2010-04-08 07:31:18 UTC (rev 6518)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/common/pm/ProjectTaskSqlQueries.class.php	2010-04-08 08:22:03 UTC (rev 6519)
@@ -18,10 +18,10 @@
 } else {
 
 	while($arr = db_fetch_array($res)) {
-	$arrResult = array($arr[0],$arr[1]);
+	$arrResult = array('group_project_id'=>$arr[0],'group_id'=>$arr[1]);
 	}
 	
-	return $arrResult; // returns $arrResult[0] with group_project_id and $arrResult[1] with group_id
+	return $arrResult; // returns $arrResult['group_project_id'] with group_project_id and $arrResult['group_id'] with group_id
 }
 
 }




More information about the evolvis-commits mailing list