[fusion-commits] r1599 - branches/fusion-1.1/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Oct 21 10:55:46 EDT 2008


Author: madair
Date: 2008-10-21 10:55:45 -0400 (Tue, 21 Oct 2008)
New Revision: 1599

Modified:
   branches/fusion-1.1/MapServer/php/SetLayers.php
Log:
re #142: now uses correct array as index in for loop

Modified: branches/fusion-1.1/MapServer/php/SetLayers.php
===================================================================
--- branches/fusion-1.1/MapServer/php/SetLayers.php	2008-10-14 18:53:23 UTC (rev 1598)
+++ branches/fusion-1.1/MapServer/php/SetLayers.php	2008-10-21 14:55:45 UTC (rev 1599)
@@ -49,7 +49,7 @@
 
 if (count($currentLayers) != count($layers) ) {
   echo "/* removing layers ";
-	for ($i=0; $i<count($layers); $i++) {
+	for ($i=0; $i<count($currentLayers); $i++) {
 		if ($i != $layers[$i]) {
 		  echo $i." ";
 			$layer = $oMap->getLayer($i);



More information about the fusion-commits mailing list