[Mapbender-commits] r2667 - branches/testbaudson_dev/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jul 17 08:05:41 EDT 2008


Author: christoph
Date: 2008-07-17 08:05:41 -0400 (Thu, 17 Jul 2008)
New Revision: 2667

Modified:
   branches/testbaudson_dev/http/php/mod_createJSObjFromDBByWMS.php
Log:


Modified: branches/testbaudson_dev/http/php/mod_createJSObjFromDBByWMS.php
===================================================================
--- branches/testbaudson_dev/http/php/mod_createJSObjFromDBByWMS.php	2008-07-17 12:05:08 UTC (rev 2666)
+++ branches/testbaudson_dev/http/php/mod_createJSObjFromDBByWMS.php	2008-07-17 12:05:41 UTC (rev 2667)
@@ -39,7 +39,12 @@
 $admin = new administration();
 if ($admin->getWmsPermission($wms_id, $user_id)) {
 	$mywms = new wms();
-	$mywms->createObjFromDB($gui_id, $wms_id);
+	if(isset($gui_id) && $gui_id!='undefined'){
+		$mywms->createObjFromDB($gui_id, $wms_id);
+	}
+	else{
+		$mywms->createObjFromDBNoGui($wms_id);	
+	}
 	$mywms->createJsObjFromWMS(true);
 	echo "parent.mod_addWMS_refresh();";
 }



More information about the Mapbender_commits mailing list