diff --git a/openstreetmap.tgz b/openstreetmap.tgz index 85da0748..97962352 100644 Binary files a/openstreetmap.tgz and b/openstreetmap.tgz differ diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php index d76414c4..ef5d6bef 100755 --- a/openstreetmap/openstreetmap.php +++ b/openstreetmap/openstreetmap.php @@ -28,6 +28,9 @@ function openstreetmap_uninstall() { function openstreetmap_location($a, &$item) { + if(! (strlen($item['location']) || strlen($item['coord']))) + return; + $location = ''; $coord = ''; @@ -36,7 +39,7 @@ function openstreetmap_location($a, &$item) { if($item['coord']) { $coords = explode(' ', $item['coord']); if(count($coords) > 1) { - $coord = '' . $item['coord'] . '' ; + $coord = '' . $item['coord'] . '' ; } } if(strlen($coord)) {