X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/e8da4e6ed55aa6dff5dd8df7d65d62bed3b4d7b5..7daf31ceedd9e6b0aba992d962fc8c66a1c5d8fd:/pear_lib_tmp/HTML/Image.php diff --git a/pear_lib_tmp/HTML/Image.php b/pear_lib_tmp/HTML/Image.php index d0aa40e..628b952 100644 --- a/pear_lib_tmp/HTML/Image.php +++ b/pear_lib_tmp/HTML/Image.php @@ -53,10 +53,14 @@ class HTML_Image extends HTML_Common { * @return void * @access public */ - function HTML_Image($src = '', $alt = '', $attrs = array())// ~X2C + function HTML_Image($src = '', $alt = '', $attrs = array('border' => 0))// ~X2C { - $attrs['src'] = $src; - $attrs['alt'] = $alt; + if (is_array($attrs)) { + $attrs['src'] = $src; + $attrs['alt'] = $alt; + } else { + $attrs .= " src=$src alt=$alt"; + } parent::HTML_Common($attrs); } // -X2C