X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/e8da4e6ed55aa6dff5dd8df7d65d62bed3b4d7b5..74a6809a6496f09fbed3cc420d9ad1665f150648:/pear_lib_tmp/HTML/Image.php?ds=sidebyside diff --git a/pear_lib_tmp/HTML/Image.php b/pear_lib_tmp/HTML/Image.php index d0aa40e..9e03d46 100644 --- a/pear_lib_tmp/HTML/Image.php +++ b/pear_lib_tmp/HTML/Image.php @@ -55,8 +55,12 @@ class HTML_Image extends HTML_Common { */ function HTML_Image($src = '', $alt = '', $attrs = array())// ~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