From 6511ec3aa8d02645d8fbcdd133a93a58d72f388b Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 30 Apr 2019 23:21:53 +0200 Subject: [PATCH 1/1] Convert importance to float value Fixes #1369. --- lib/PlaceLookup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index cf3e4f7b..fce49701 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -428,6 +428,7 @@ class PlaceLookup $aPlaces = $this->oDB->getAll($sSQL, null, 'Could not lookup place'); foreach ($aPlaces as &$aPlace) { + $aPlace['importance'] = (float) $aPlace['importance']; if ($this->bAddressDetails) { // to get addressdetails for tiger data, the housenumber is needed $aPlace['address'] = new AddressDetails( -- 2.39.5