Skip to content

Commit

Permalink
Merge pull request #19 from prtksxna/unexpected-ifset
Browse files Browse the repository at this point in the history
Geo_Provider_OSM: Add missing `?:' in reverse_lookup()
  • Loading branch information
dshanske authored Feb 4, 2017
2 parents 6a64952 + 19080ef commit 918406d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-geo-provider-osm.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function reverse_lookup() {
$street = ifset( $address['house_number'], '' ) . ' ';
$street .= ifset( $address['road'] ) ?: ifset( $address['highway'] ) ?: ifset( $address['footway'] ) ?: '';
$addr = array(
'name' => ifset( $address['attraction'] ) ?: ifset( $address['building'] ) ?: ifset( $address['hotel'] ) ifset( $address['address29'] ) ?: ifset( $address['address26'] ) ?: null,
'name' => ifset( $address['attraction'] ) ?: ifset( $address['building'] ) ?: ifset( $address['hotel'] ) ?: ifset( $address['address29'] ) ?: ifset( $address['address26'] ) ?: null,
'street-address' => $street,
'extended-address' => ifset( $address['boro'] ) ?: ifset( $address['neighbourhood'] ) ?: ifset( $address['suburb'] ) ?: null,
'locality' => ifset( $address['hamlet'] ) ?: ifset( $address['village'] ) ?: ifset( $address['town'] ) ?: ifset( $address['city'] ) ?: null,
Expand Down

0 comments on commit 918406d

Please sign in to comment.