Index: trunk/extensions/GeoData/ApiQueryGeoSearch.php |
— | — | @@ -97,8 +97,8 @@ |
98 | 98 | 'pageid' => intval( $row->page_id ), |
99 | 99 | 'ns' => intval( $title->getNamespace() ), |
100 | 100 | 'title' => $title->getPrefixedText(), |
101 | | - 'lat' => $row->gt_lat, |
102 | | - 'lon' => $row->gt_lon, |
| 101 | + 'lat' => floatval( $row->gt_lat ), |
| 102 | + 'lon' => floatval( $row->gt_lon ), |
103 | 103 | 'dist' => round( $row->dist, 1 ), |
104 | 104 | ); |
105 | 105 | $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $vals ); |