Permalink
Browse files

Small fix for 4540 in empty maps

  • Loading branch information...
1 parent 3128a85 commit 389f82e4cf53b06e2ee92954583bbcb18739153a @jlarouche jlarouche committed Aug 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapows.c
View
@@ -557,7 +557,7 @@ int msOWSRequestIsEnabled(mapObj *map, layerObj *layer,
return MS_FALSE;
}
- if (map && check_all_layers == MS_FALSE) {
+ if (map && (check_all_layers == MS_FALSE || map->numlayers == 0)) {
/* then we check in the map metadata */
enable_request = msOWSLookupMetadata(&map->web.metadata, namespaces, "enable_request");
if (msOWSParseRequestMetadata(enable_request, request, &disabled))

0 comments on commit 389f82e

Please sign in to comment.