[Mapbender-commits] r7192 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Dec 7 05:27:49 EST 2010


Author: christoph
Date: 2010-12-07 02:27:49 -0800 (Tue, 07 Dec 2010)
New Revision: 7192

Modified:
   trunk/mapbender/http/classes/class_wfs_conf.php
Log:
#731

Modified: trunk/mapbender/http/classes/class_wfs_conf.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs_conf.php	2010-12-06 14:58:21 UTC (rev 7191)
+++ trunk/mapbender/http/classes/class_wfs_conf.php	2010-12-07 10:27:49 UTC (rev 7192)
@@ -55,12 +55,12 @@
 			// parameter is an array of numbers
 			if (is_array($idOrIdArray)) {
 				$idArray = array();
-				for ($i=0; $i < count($idOrIdArray); $i++) {
-					if (!is_numeric($idOrIdArray[$i])) {
-						$e = new mb_exception("Wfs_conf: constructor: wrong parameter: ".$idOrIdArray[$i]." is not a number.");
+				foreach ($idOrIdArray as $id) {
+					if (!is_numeric($id)) {
+						$e = new mb_exception("Wfs_conf: constructor: wrong parameter: ".$id." is not a number.");
 						return array();
 					}
-					array_push($idArray, intval($idOrIdArray[$i]));
+					array_push($idArray, intval($id));
 				}
 
 				// If a user ID is given, remove the ones the user has no access to



More information about the Mapbender_commits mailing list