]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-html.php
Merge pull request #1189 from mtmail/classtypes-unit-tests
[nominatim.git] / lib / template / details-html.php
index 328786e28ae04490f87a1f0a997d7ba9829a5179..01583e5f789499a27a28dbdb4d9e3048c72b761e 100644 (file)
         }
     }
 
-
-
     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']);
+            }
         }
     }