diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index 271a709b9..dedc7b9ee 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -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); } /**