Преглед изворни кода

Fix geolocation returning as string

Alan Lam пре 8 година
родитељ
комит
065701ba15
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      engine/location.php

+ 4 - 1
engine/location.php

@@ -28,7 +28,10 @@ class Location extends Model {
 	}
 
 	public function getGeolocation() {
-		return [$this->latitude, $this->longitude];
+		return [
+			doubleval($this->latitude),
+			doubleval($this->longitude)
+		];
 	}
 
 	public function getPhotos() {