[fusion-commits] r1805 - trunk/layers/MapServer/php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Mar 4 15:27:32 EST 2009
Author: pdeschamps
Date: 2009-03-04 15:27:32 -0500 (Wed, 04 Mar 2009)
New Revision: 1805
Modified:
trunk/layers/MapServer/php/Maptip.php
Log:
removed Die() func on fail. instead used is_object on each layer so we
can specify layers that may not exist in the AppDef.
Modified: trunk/layers/MapServer/php/Maptip.php
===================================================================
--- trunk/layers/MapServer/php/Maptip.php 2009-03-04 20:22:05 UTC (rev 1804)
+++ trunk/layers/MapServer/php/Maptip.php 2009-03-04 20:27:32 UTC (rev 1805)
@@ -84,10 +84,6 @@
foreach($aLayer as $key=>$layer){
$oLayer = @$oMap->GetLayerByName($layer);
- if(!is_object($oLayer)){
- $szMessage = "{'maptips':'','url':'','label':'','error':' The layer [".$layer."] was not found'}";
- die($szMessage);
- }
// make sure the layer exists in the map.
if(is_object($oLayer)){
$oLayer->set('tolerance', 0);
More information about the fusion-commits
mailing list