From d5993744428b80b2267a50fdc2d224182b1b053b Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Mon, 30 May 2016 00:06:16 +0300 Subject: [PATCH] HOT FIX --- classes/Kml.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Kml.php b/classes/Kml.php index 83171e2..dce51b2 100644 --- a/classes/Kml.php +++ b/classes/Kml.php @@ -17,11 +17,12 @@ class Kml foreach ($this->get($this->kml, 'Placemark') as $placemark) { if ($this->has($placemark, 'Point')) { + $latlngs = $this->getCoords($placemark); $this->waypoints[] = array( 'name' => trim($this->getValue($placemark, 'name')), 'description' => trim($this->getValue($placemark, 'description')), 'when' => date('c', strtotime($this->getValue($placemark, 'when'))), - 'latlng' => $this->getCoords($placemark)[0], + 'latlng' => $latlngs[0], ); }