From 19080efb7e9f3b0e6ccbe64a3fa72097c53a9a6e Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Fri, 13 Jan 2017 16:17:10 +0530 Subject: [PATCH] Geo_Provider_OSM: Add missing `?:' in reverse_lookup() Without this the following error shows on every page: Parse error: syntax error, unexpected 'ifset' (T_STRING), expecting ')' in /var/www/html/wp-content/plugins/simple- location/includes/class-geo-provider-osm.php on line 26 --- includes/class-geo-provider-osm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-geo-provider-osm.php b/includes/class-geo-provider-osm.php index 7973868..eeeff36 100644 --- a/includes/class-geo-provider-osm.php +++ b/includes/class-geo-provider-osm.php @@ -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,