[Mapbender-commits] r7676 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Mar 3 03:52:20 EST 2011
Author: arsgeografica
Date: 2011-03-03 00:52:20 -0800 (Thu, 03 Mar 2011)
New Revision: 7676
Modified:
trunk/mapbender/http/plugins/mb_metadata_server.php
trunk/mapbender/http/plugins/mb_metadata_wfs_server.php
Log:
#774 - admin_wms_metadata and admin_wfs_metadata will now show empty table when there are no records for the current user in the database.
Modified: trunk/mapbender/http/plugins/mb_metadata_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_server.php 2011-03-03 08:38:14 UTC (rev 7675)
+++ trunk/mapbender/http/plugins/mb_metadata_server.php 2011-03-03 08:52:20 UTC (rev 7676)
@@ -16,9 +16,7 @@
function getWms ($wmsId = null) {
$user = new User(Mapbender::session()->get("mb_user_id"));
$wmsIdArray = $user->getOwnedWms();
- if (!is_array($wmsIdArray) || count($wmsIdArray) === 0) {
- abort(_mb("No metadata sets available."));
- }
+
if (!is_null($wmsId) && !in_array($wmsId, $wmsIdArray)) {
abort(_mb("You are not allowed to access this WMS."));
}
Modified: trunk/mapbender/http/plugins/mb_metadata_wfs_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_wfs_server.php 2011-03-03 08:38:14 UTC (rev 7675)
+++ trunk/mapbender/http/plugins/mb_metadata_wfs_server.php 2011-03-03 08:52:20 UTC (rev 7676)
@@ -17,9 +17,7 @@
function getWfs ($wfsId = null) {
$user = new User(Mapbender::session()->get("mb_user_id"));
$wfsIdArray = $user->getOwnedWfs();
- if (!is_array($wfsIdArray) || count($wfsIdArray) === 0) {
- abort(_mb("No metadata sets available."));
- }
+
if (!is_null($wfsId) && !in_array($wfsId, $wfsIdArray)) {
abort(_mb("You are not allowed to access this WFS."));
}
More information about the Mapbender_commits
mailing list