Skip to content

Commit

Permalink
small improvement to subdomain check
Browse files Browse the repository at this point in the history
  • Loading branch information
bozdoz committed Sep 13, 2022
1 parent a8cb116 commit baa8ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shortcodes/class.map-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected function getAtts($atts='')
$tile_layer_options = $this->LM->filter_empty_string($tile_layer_options);
$tile_layer_options = $this->LM->filter_null($tile_layer_options);

if (strpos($tile_layer_options['subdomains'], ',') !== false) {
if (isset($tile_layer_options['subdomains']) && strpos($tile_layer_options['subdomains'], ',') !== false) {
// subdomains can be comma-separated
$tile_layer_options['subdomains'] = explode(',', $tile_layer_options['subdomains']);
}
Expand Down

0 comments on commit baa8ceb

Please sign in to comment.