]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix bug in Geocode.php
authorMarkus Gail <markus.gail.94@gmail.com>
Fri, 29 Apr 2016 08:24:30 +0000 (10:24 +0200)
committerMarkus Gail <markus.gail.94@gmail.com>
Fri, 29 Apr 2016 08:24:30 +0000 (10:24 +0200)
lib/Geocode.php

index 61ac834ba832feb0e88780d8f1ad75bae32f7f12..83eb647aaf0a1c96e2623028771293659e43a459 100644 (file)
                                 $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";
                                                        }