1
0
Эх сурвалжийг харах

Fix geolocation returning as string

Alan Lam 8 жил өмнө
parent
commit
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() {