X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3852096c80d5461eab21ec8c7e2452a85d631d7d..9177a7f56c55d05f0eb38f6cd651028d160620ba:/website/search.php diff --git a/website/search.php b/website/search.php index 2c1d2bef..be74cc9b 100755 --- a/website/search.php +++ b/website/search.php @@ -1326,7 +1326,7 @@ //var_Dump($aSearchResults); //exit; $aClassType = getClassTypesWithImportance(); - $aRecheckWords = preg_split('/\b/',$sQuery); + $aRecheckWords = preg_split('/\b/u',$sQuery); foreach($aRecheckWords as $i => $sWord) { if (!$sWord) unset($aRecheckWords[$i]); @@ -1530,7 +1530,7 @@ if (sizeof($aSearchResults) >= $iFinalLimit) break; } - $sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '1 day'::interval,'YYYY/MM/DD') from import_status limit 1"); + $sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '2 minutes'::interval,'YYYY/MM/DD HH24:MI')||' GMT' from import_status limit 1"); if (isset($_GET['nearlat']) && isset($_GET['nearlon'])) {