From caceb4fd506ad50a57db20b44d5bd2e74945085b Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Mon, 20 Feb 2017 23:29:54 +0100 Subject: [PATCH] Fix traveler array --- page-pins.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page-pins.php b/page-pins.php index 2965821..b0916e1 100644 --- a/page-pins.php +++ b/page-pins.php @@ -78,7 +78,7 @@ } } endwhile; - wp_localize_script('page_pins_map', 'page_pins_map', array('places' => $locations, 'traveler' => $traveler)); + wp_localize_script('page_pins_map', 'page_pins_map', array('places' => $locations, 'traveler' => array_values($traveler))); ?>