Browse Source

add check for address property

main
Aaron Parecki 6 years ago
parent
commit
5d675b56fa
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      p3k/Geocoder.php

+ 3
- 0
p3k/Geocoder.php View File

@ -9,6 +9,9 @@ class Geocoder {
if(!$response) if(!$response)
return false; return false;
if(!property_exists($response, 'address'))
return false;
$address = $response->address; $address = $response->address;
$result = new geocode\Result; $result = new geocode\Result;

Loading…
Cancel
Save