Explorar el Código

Fix geolocation returning as string

Alan Lam hace 8 años
padre
commit
065701ba15
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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() {