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']!='' ) : ?>