X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d4b633bfc50188f36e3c4a8b2b99c3a0e6a7f12e..58852b3eebf712dbf0e87a2a7aa98ba6b39ef02d:/lib/TokenList.php diff --git a/lib/TokenList.php b/lib/TokenList.php index 2d0c7c16..84dc98d0 100644 --- a/lib/TokenList.php +++ b/lib/TokenList.php @@ -71,7 +71,7 @@ class TokenList /** * Add token information from the word table in the database. * - * @param object $oDB Database connection. + * @param object $oDB Nominatim::DB instance. * @param string[] $aTokens List of tokens to look up in the database. * @param string[] $aCountryCodes List of country restrictions. * @param string $sNormQuery Normalized query string. @@ -89,7 +89,7 @@ class TokenList Debug::printSQL($sSQL); - $aDBWords = chksql($oDB->getAll($sSQL), 'Could not get word tokens.'); + $aDBWords = $oDB->getAll($sSQL, null, 'Could not get word tokens.'); foreach ($aDBWords as $aWord) { $oToken = null;