]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
create proper token array for unknown housenumbers
[nominatim.git] / website / search.php
index f4b9b9248236de26b0ddc8e234d3a03d9862892a..c6aa05d17039a8d64806d0b668b58d7fa9df16cd 100755 (executable)
                                // Unknown single word token with a number - assume it is a house number
                                if (!isset($aValidTokens[' '.$sToken]) && strpos($sToken,' ') === false && preg_match('/[0-9]/', $sToken))
                                {
-                                       $aValidTokens[' '.$sToken] = array('class'=>'place','type'=>'house');
+                                       $aValidTokens[' '.$sToken] = array(array('class'=>'place','type'=>'house'));
                                }
                        }