Przeglądaj źródła

Fix geolocation returning as string

Alan Lam 8 lat temu
rodzic
commit
065701ba15
1 zmienionych plików z 4 dodań i 1 usunięć
  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() {