[Mapbender-commits] r1044 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 25 08:24:27 EST 2007


Author: christoph
Date: 2007-01-25 08:24:27 -0500 (Thu, 25 Jan 2007)
New Revision: 1044

Modified:
   trunk/mapbender/http/javascripts/mod_loadwmc.php
Log:
- bugfix: added condition !empty(wmc) before load(wmc)
- removed: load wmc from session


Modified: trunk/mapbender/http/javascripts/mod_loadwmc.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_loadwmc.php	2007-01-25 13:22:50 UTC (rev 1043)
+++ trunk/mapbender/http/javascripts/mod_loadwmc.php	2007-01-25 13:24:27 UTC (rev 1044)
@@ -44,7 +44,7 @@
 
 function load_wmc_session() {
 	<?php
-		if (isset($_SESSION['mb_wmc'])) {
+		if (isset($_SESSION['mb_wmc']) && !empty($_SESSION['mb_wmc'])) {
 			$wmc = new wmc();
 			if ($wmc->createObjFromWMC_xml($_SESSION['mb_wmc'])) {
 /*
@@ -64,7 +64,7 @@
 		}
 	?>
 }
-mb_registerInitFunctions('load_wmc_session()');
+//mb_registerInitFunctions('load_wmc_session()');
 
 var mod_loadwmc_img = new Image(); mod_loadwmc_img.src = "<?php  echo $e_src;  ?>";
 //var mod_loadwmc_img_over = new Image(); mod_loadwmc_img_over.src = "<?php  echo preg_replace("/_off/","_over",$e_src);  ?>";



More information about the Mapbender_commits mailing list