Skip to content

Commit

Permalink
fix fatal #71
Browse files Browse the repository at this point in the history
  • Loading branch information
mcguffin committed Dec 28, 2024
1 parent c9d3935 commit 52096b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ACFFieldOpenstreetmap/Core/LeafletGeocoders.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function get_options($geocoder_name) {
$options = array_map( function( $option_value ) {
// Parse credentials placeholder
// TODO: use centralized function like in LeafletProviders DRY
if ( preg_match( '/^<([^>]*)>$/imsU', $option_value ) ) {
if ( is_string($option_value) && preg_match( '/^<([^>]*)>$/imsU', $option_value ) ) {
return '';
}
return $option_value;
Expand Down

0 comments on commit 52096b0

Please sign in to comment.