]> git.openstreetmap.org Git - nominatim.git/commitdiff
isaddress field may be missing in details view
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 14 Apr 2019 10:03:37 +0000 (12:03 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 14 Apr 2019 10:03:37 +0000 (12:03 +0200)
lib/template/details-html.php

index 9ef595634f5c0a1e3d64014cd3c114ad05dbbc69..9b76efc12f90977a4b91927a75be8e35bb950dc2 100644 (file)
@@ -61,7 +61,7 @@
 
 
     function _one_row($aAddressLine){
-        $bNotUsed = !$aAddressLine['isaddress'];
+        $bNotUsed = isset($aAddressLine['isaddress']) && !$aAddressLine['isaddress'];
 
         echo '<tr class="' . ($bNotUsed?'notused':'') . '">'."\n";
         echo '  <td class="name">'.(trim($aAddressLine['localname'])?$aAddressLine['localname']:'<span class="noname">No Name</span>')."</td>\n";