Use proper comparison

This commit is contained in:
Markus Ankenbrand 2024-10-29 23:58:04 +01:00
parent 9bd265ab5b
commit 5f683c7e44

View file

@ -80,12 +80,12 @@
echo "<br>"; echo "<br>";
echo var_dump($locations); echo var_dump($locations);
echo "<br>"; echo "<br>";
if ( $location && (!$locations || count($locations)==0 || is_nan($locations[0]['lat'])) ) { if ( $location && (!$locations || count($locations)==0 || $locations[0]['lat']=='') ) {
$locations = [$location]; $locations = [$location];
} }
echo var_dump($locations); echo var_dump($locations);
?> ?>
<?php if ( $locations && count($locations)>0 && !is_nan($locations[0]['lat'])) : ?> <?php if ( $locations && count($locations)>0 && $locations[0]['lat']!='' ) : ?>
<div class="post-meta"> <div class="post-meta">
<div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>-multiple'></div> <div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>-multiple'></div>
<script type='text/javascript'> <script type='text/javascript'>