]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
fix some php warnings for cleaner output
[nominatim.git] / lib / template / search-xml.php
index bdf1eab53ae93b19a8f04eca3b7ac83d6e8e4be1..5ebfa2826c8e11c3edea9d0fad7e9a16cc058bfe 100644 (file)
@@ -61,7 +61,7 @@
 
                echo " class='".htmlspecialchars($aResult['class'])."'";
                echo " type='".htmlspecialchars($aResult['type'])."'";
-               if ($aResult['icon'])
+               if (isset($aResult['icon']) && $aResult['icon'])
                {
                        echo " icon='".htmlspecialchars($aResult['icon'], ENT_QUOTES)."'";
                }