Empty height and width attributes in the generated image tags
BooDy - February 11, 2008 - 09:08
| Project: | Image |
| Version: | 5.x-2.x-dev |
| Component: | image.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
The function image_display() creates an tag and gives it the attributes retrieved from image_get_info(). If for some reason the height and width weren't retrieved, the attributes will be passed with no value which will cause IE to consider the empty values as 0s and won't display the image at all.
A simple check if the value of $image_info is not empty before assigning the height and width to the attributes array will solve this.
