[Fusionforge-commits] r14032 - trunk/src/plugins/projects_hierarchy/common

Franck VILLAUME nerville at fusionforge.org
Tue Aug 2 15:10:21 CEST 2011


Author: nerville
Date: 2011-08-02 15:10:21 +0200 (Tue, 02 Aug 2011)
New Revision: 14032

Modified:
   trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php
Log:
use array_flatten as replacement of array_walk_recursive

Modified: trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php
===================================================================
--- trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php	2011-08-02 13:06:27 UTC (rev 14031)
+++ trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php	2011-08-02 13:10:21 UTC (rev 14032)
@@ -250,10 +250,7 @@
 	 * @access	public
 	 */
 	function getFamilyID($group_id, $order, $deep = false, $status = 'any') {
-		$familyFlatArray = array();
-		$familyArray = $this->getFamily($group_id, $order, $deep, $status);
-		array_walk_recursive($familyArray, create_function('$val, $key, $obj', 'array_push($obj, $val);'), $familyFlatArray);
-		return $familyFlatArray;
+		return array_flatten($this->getFamily($group_id, $order, $deep, $status));
 	}
 
 	/**




More information about the Fusionforge-commits mailing list