]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix operator type assignment
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 20 Jul 2018 20:27:27 +0000 (22:27 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 20 Jul 2018 20:27:27 +0000 (22:27 +0200)
Fixes #1084.

lib/TokenList.php

index a91c735ed6a2e97beb33677b5680074c08b2cdae..67d94edd7ded9efa1c598b67d3d90eadc3972aba 100644 (file)
@@ -125,7 +125,7 @@ class TokenList
                         $iId,
                         $aWord['class'],
                         $aWord['type'],
-                        $aWord['operator'] ? Operator::NONE : Operator::NEAR
+                        $aWord['operator'] ? Operator::NEAR : Operator::NONE
                     );
                 }
             } elseif ($aWord['country_code']) {