[fusion-commits] r1792 - trunk/layers/MapServer/php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Feb 19 15:50:17 EST 2009
Author: pdeschamps
Date: 2009-02-19 15:50:17 -0500 (Thu, 19 Feb 2009)
New Revision: 1792
Modified:
trunk/layers/MapServer/php/SetLayers.php
Log:
#216 added <= to for loop to allow the last item if deleated to be removed.
Modified: trunk/layers/MapServer/php/SetLayers.php
===================================================================
--- trunk/layers/MapServer/php/SetLayers.php 2009-02-17 19:58:04 UTC (rev 1791)
+++ trunk/layers/MapServer/php/SetLayers.php 2009-02-19 20:50:17 UTC (rev 1792)
@@ -49,7 +49,7 @@
if (count($currentLayers) != count($layers) ) {
echo "/* removing layers ";
- for ($i=0; $i<count($currentLayers); $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