]> git.openstreetmap.org Git - nominatim.git/commitdiff
create proper token array for unknown housenumbers
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 4 Mar 2012 13:40:13 +0000 (14:40 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 4 Mar 2012 13:40:13 +0000 (14:40 +0100)
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'));
                                }
                        }