Fix typo decode->encode

This commit is contained in:
Markus Ankenbrand 2016-11-05 20:31:06 +01:00
parent 21515e4efb
commit 4e070cb269

View file

@ -98,7 +98,7 @@
<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'>
var places = <?php echo json_decode($location); ?>;
var places = <?php echo json_encode($location); ?>;
var map;
var map_center = {lat: places[0]['lat'], lng: places[0]['lng'] };
function initMap() {