Fix notice when image is missing
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 23 Feb 2006 16:16:17 +0000 (16:16 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 23 Feb 2006 16:16:17 +0000 (16:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10819 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/util_global.php

index 9c8f39127f451871f374e47cc5bd5ad5d6818f49..62ce430988fc7a3de6bf85241bcb73abb72a2cfb 100644 (file)
@@ -41,7 +41,7 @@ function getIcon($icon_theme_path, $icon_name, $text_icon, $alt_text='', $w=NULL
         
         // If we found an icon, build an img tag to display it.  If we didn't
         // find an image, we will revert back to the text icon.
-        if (!is_null($icon_path)) {
+        if (isset($icon_path) && !is_null($icon_path)) {
             $icon = '<img src="'.$icon_path.'" ' .
                     (!empty($alt_text) ? 'alt="'.$alt_text.'" title="'.$alt_text.'" ' : '') .
                     (!is_null($w) ? 'width="'.$w.'" ' : '') .