From 2ba9c11dd05e72ff2de9743df59759c41655ff9d Mon Sep 17 00:00:00 2001 From: Markus Gail Date: Fri, 29 Apr 2016 10:24:30 +0200 Subject: [PATCH] fix bug in Geocode.php --- lib/Geocode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index 61ac834b..83eb647a 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1335,7 +1335,7 @@ $aOrder[0] .= " and transliteration(housenumber) ~* E'".$sHouseNumberRegex."' limit 1) "; // also housenumbers from interpolation lines table are needed $aOrder[0] .= " or exists(select place_id from location_property_osmline where parent_place_id = search_name.place_id"; - $aOrder[0] .= " and ".$aSearch['sHouseNumber'].">=startnumber and ".$aSearch['sHouseNumber']."<=endnumber limit 1)"; + $aOrder[0] .= " and ".intval($aSearch['sHouseNumber']).">=startnumber and ".intval($aSearch['sHouseNumber'])."<=endnumber limit 1)"; $aOrder[0] .= " desc"; } -- 2.39.5