X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/26bd8304c65746b59dd45fc0965343fb3637f6f8..0df5f77bc4c92e2f8f635105441779277435da67:/lib/template/details-html.php diff --git a/lib/template/details-html.php b/lib/template/details-html.php index 328786e2..01583e5f 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -177,18 +177,20 @@ } } - - if ($bIncludeKeywords) { headline('Name Keywords'); - foreach ($aPlaceSearchNameKeywords as $aRow) { - _one_keyword_row($aRow['word_token'], $aRow['word_id']); + if ($aPlaceSearchNameKeywords) { + foreach ($aPlaceSearchNameKeywords as $aRow) { + _one_keyword_row($aRow['word_token'], $aRow['word_id']); + } } headline('Address Keywords'); - foreach ($aPlaceSearchAddressKeywords as $aRow) { - _one_keyword_row($aRow['word_token'], $aRow['word_id']); + if ($aPlaceSearchAddressKeywords) { + foreach ($aPlaceSearchAddressKeywords as $aRow) { + _one_keyword_row($aRow['word_token'], $aRow['word_id']); + } } }