]> git.llucax.com Git - mecon/meconlib.git/blobdiff - pear_lib_tmp/HTML/Image.php
Se arregla un bug.
[mecon/meconlib.git] / pear_lib_tmp / HTML / Image.php
index d0aa40efbf5361bd8994df9324f23f1327976bb5..9e03d46afa3002a42fa140252330ad5dde2eac54 100644 (file)
@@ -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