Index: trunk/extensions/Maps/includes/manipulations/Maps_ParamGeoService.php |
— | — | @@ -58,7 +58,9 @@ |
59 | 59 | if ( $value === '' || !array_key_exists( $value, MapsGeocoders::$registeredGeocoders ) ) { |
60 | 60 | if ( !$validatedDefault ) { |
61 | 61 | if ( !array_key_exists( $egMapsDefaultGeoService, MapsGeocoders::$registeredGeocoders ) ) { |
62 | | - $egMapsDefaultGeoService = array_shift( array_keys( MapsGeocoders::$registeredGeocoders ) ); |
| 62 | + $geoServices = array_keys( MapsGeocoders::$registeredGeocoders ); |
| 63 | + $egMapsDefaultGeoService = array_shift( $geoServices ); |
| 64 | + |
63 | 65 | if ( is_null( $egMapsDefaultGeoService ) ) { |
64 | 66 | throw new Exception( 'Tried to geocode while there are no geocoders available at ' . __METHOD__ ); |
65 | 67 | } |