]> git.mxchange.org Git - friendica-addons.git/blobdiff - googlemaps/googlemaps.php
Merge branch '3.6-rc'
[friendica-addons.git] / googlemaps / googlemaps.php
index e294c8e0e4e16a7155d6697a050df36f92d86e40..1a2a974f34aedce312560a598f33cf9c9ebce56b 100644 (file)
@@ -23,24 +23,20 @@ function googlemaps_uninstall()
        logger("removed googlemaps");
 }
 
-function googlemaps_location($a, &$item)
-{
+function googlemaps_location($a, &$item) {
 
-       if(! (strlen($item['location']) || strlen($item['coord']))) {
+       if(! (strlen($item['location']) || strlen($item['coord'])))
                return;
-       }
 
-       if ($item['coord'] != "")
+       if ($item['coord'] != "")
                $target = "http://maps.google.com/?q=".urlencode($item['coord']);
-       } else {
+       else
                $target = "http://maps.google.com/?q=".urlencode($item['location']);
-       }
 
-       if ($item['location'] != "") {
+       if ($item['location'] != "")
                $title = $item['location'];
-       } else {
+       else
                $title = $item['coord'];
-       }
 
        $item['html'] = '<a target="map" title="'.$title.'" href= "'.$target.'">'.$title.'</a>';
 }