Fix handling of empty locations array
This commit is contained in:
parent
f56520fbad
commit
f8f75ae653
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@
|
|||
<?php endif; ?>
|
||||
<?php $location = get_field( 'ort' ); ?>
|
||||
<?php $locations = get_field( 'orte' ); ?>
|
||||
<?php if ( $location && !$locations ) : ?>
|
||||
<?php if ( $location && (!$locations || count($locations)==0) ) : ?>
|
||||
<div class="post-meta">
|
||||
<div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>-single'></div>
|
||||
<script type='text/javascript'>
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
</script>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $locations ) : ?>
|
||||
<?php if ( $locations && count($locations)>0 ) : ?>
|
||||
<div class="post-meta">
|
||||
<div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>-multiple'></div>
|
||||
<script type='text/javascript'>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue