only allow either postcode or special search

Fixes #804.
This commit is contained in:
Sarah Hoffmann 2017-10-04 20:15:06 +02:00
parent 1220ff5da6
commit 32f6ddf6db

View File

@ -785,7 +785,7 @@ class Geocode
// require a normalized exact match of the term
// if we have the normalizer version of the query
// available
if ($aSearch['sClass'] === ''
if ($aSearch['sOperator'] === ''
&& ($sNormQuery === null || !($aSearchTerm['word'] && strpos($sNormQuery, $aSearchTerm['word']) === false))) {
$aSearch['sClass'] = $aSearchTerm['class'];
$aSearch['sType'] = $aSearchTerm['type'];