From b2e18e40acfee0323a2366dd843487b374190b87 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Tue, 29 Oct 2024 23:42:25 +0100 Subject: [PATCH] Fix conditions --- single.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/single.php b/single.php index ce1ee00..dcec9bc 100644 --- a/single.php +++ b/single.php @@ -76,13 +76,11 @@ "; - echo var_dump($locations); - if ( $location && !$locations ){ + if ( $location && (!$locations || count($locations)==0) || is_nan($locations[0]['lat']) ) { $locations = [$location]; } ?> + 0 && !is_nan($locations[0]['lat'])) : ?>