[Mapbender-commits] r7669 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Mar 2 10:00:33 EST 2011


Author: arsgeografica
Date: 2011-03-02 07:00:33 -0800 (Wed, 02 Mar 2011)
New Revision: 7669

Modified:
   trunk/mapbender/http/plugins/mb_metadata_wmc_server.php
Log:
#774 - admin_wmc_metadata will now show empty table when there are no WMC docs for the current user in the database.

Modified: trunk/mapbender/http/plugins/mb_metadata_wmc_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_wmc_server.php	2011-03-02 14:19:31 UTC (rev 7668)
+++ trunk/mapbender/http/plugins/mb_metadata_wmc_server.php	2011-03-02 15:00:33 UTC (rev 7669)
@@ -18,10 +18,7 @@
 	$user = new User(Mapbender::session()->get("mb_user_id"));
 	$wmcIdArray = $user->getWmcByOwner();
 	//getAccessibleWmcs();
-		
-	if (!is_array($wmcIdArray) || count($wmcIdArray) === 0) {
-		abort(_mb("No metadata sets available."));
-	}
+
 	if (!is_null($wmcId) && !in_array($wmcId, $wmcIdArray)) {
 		abort(_mb("You are not allowed to access this WMC."));
 	}



More information about the Mapbender_commits mailing list