Adding fix for Ticket #900

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3110 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-06-15 13:40:02 +00:00
parent 14d5d8e979
commit 50411bd87b

View file

@ -375,6 +375,10 @@ class HtmlHelper extends Helper {
} else {
$url = $this->webroot . IMAGES_URL . $this->themeWeb . $path;
}
if (!isset($htmlAttributes['alt'])) {
$htmlAttributes['alt'] = '';
}
return $this->output(sprintf($this->tags['image'], $url, $this->parseHtmlOptions($htmlAttributes, null, '', ' ')), $return);
}
/**