Loglevels adjusted, warnings fixed

This commit is contained in:
Michael 2022-09-08 04:16:17 +00:00
parent 9e0bc31d42
commit 86e24c747e
2 changed files with 30 additions and 29 deletions

View file

@ -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;