X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/aa8c6e5f135364779568b465a521b44e36058dcf..2e14c7b337b9540ab03a4ed3c3cb21b16f1be6cd:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 3b16b399..3ed66237 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -169,7 +169,7 @@ { $aResult = array(array(join(' ',$aWords))); $sFirstToken = ''; - if ($iDepth < 8) { + if ($iDepth < 7) { while(sizeof($aWords) > 1) { $sWord = array_shift($aWords); @@ -898,3 +898,8 @@ if ($aItemListValues) $aAddressRankList = array_merge($aAddressRankList, $aItemListValues); return true; } + + function addQuotes($s) + { + return "'".$s."'"; + }