Skip to content

Commit

Permalink
Small fix for 4540 in empty maps
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarouche committed Aug 19, 2013
1 parent 3128a85 commit 389f82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapows.c
Expand Up @@ -557,7 +557,7 @@ int msOWSRequestIsEnabled(mapObj *map, layerObj *layer,
return MS_FALSE; 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 */ /* then we check in the map metadata */
enable_request = msOWSLookupMetadata(&map->web.metadata, namespaces, "enable_request"); enable_request = msOWSLookupMetadata(&map->web.metadata, namespaces, "enable_request");
if (msOWSParseRequestMetadata(enable_request, request, &disabled)) if (msOWSParseRequestMetadata(enable_request, request, &disabled))
Expand Down

0 comments on commit 389f82e

Please sign in to comment.