svn commit: r633 - trunk/mapbender/http/javascripts/mod_initWmc.php

christoph at osgeo.org christoph at osgeo.org
Tue Jun 27 05:05:54 EDT 2006


Author: christoph
Date: 2006-06-27 09:05:54+0000
New Revision: 633

Modified:
   trunk/mapbender/http/javascripts/mod_initWmc.php

Log:
code cleaning

Modified: trunk/mapbender/http/javascripts/mod_initWmc.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_initWmc.php?view=diff&rev=633&p1=trunk/mapbender/http/javascripts/mod_initWmc.php&p2=trunk/mapbender/http/javascripts/mod_initWmc.php&r1=632&r2=633
==============================================================================
--- trunk/mapbender/http/javascripts/mod_initWmc.php	(original)
+++ trunk/mapbender/http/javascripts/mod_initWmc.php	2006-06-27 09:05:54+0000
@@ -21,11 +21,9 @@
 
 $js = "function mod_initWMC_init() {";
 
-
 $adm = new administration();
-$valid_wmcs = $adm->getWmcByOwner($_SESSION["mb_user_id"]);
-
 if ($adm->getWmcById($_SESSION['mb_myWmc']) != false) {
+	$valid_wmcs = $adm->getWmcByOwner($_SESSION["mb_user_id"]);
 	if (in_array($_SESSION['mb_myWmc'], $valid_wmcs)) {
 		echo "var wmc_id = false;";
 		echo "wmc_id = '".$_SESSION['mb_myWmc']."';";
@@ -45,6 +43,7 @@
 else {
 	$js .= "alert('WMC id ".$_SESSION['mb_myWmc']." is not valid. Default GUI will be loaded instead.');"; 
 }
+
 $js .= "}";
 echo $js;
 




More information about the Mapbender_commits mailing list