From 5f683c7e441a079f9789fcad91b895dd10879309 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Tue, 29 Oct 2024 23:58:04 +0100 Subject: [PATCH] Use proper comparison --- single.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/single.php b/single.php index 2378162..818fd52 100644 --- a/single.php +++ b/single.php @@ -80,12 +80,12 @@ echo "
"; echo var_dump($locations); echo "
"; - if ( $location && (!$locations || count($locations)==0 || is_nan($locations[0]['lat'])) ) { + if ( $location && (!$locations || count($locations)==0 || $locations[0]['lat']=='') ) { $locations = [$location]; } echo var_dump($locations); ?> - 0 && !is_nan($locations[0]['lat'])) : ?> + 0 && $locations[0]['lat']!='' ) : ?>