mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Loglevels adjusted, warnings fixed
This commit is contained in:
parent
9e0bc31d42
commit
86e24c747e
2 changed files with 30 additions and 29 deletions
|
@ -81,7 +81,7 @@ function openstreetmap_location(App $a, &$item)
|
|||
|
||||
if ($item['coord'] != '') {
|
||||
$coords = explode(' ', $item['coord']);
|
||||
if (count($coords) > 1) {
|
||||
if ((count($coords) > 1) && is_numeric($coords[0]) && is_numeric($coords[1])) {
|
||||
$lat = urlencode(round($coords[0], 5));
|
||||
$lon = urlencode(round($coords[1], 5));
|
||||
$target = $tmsserver;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue