diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index a5aab93ea..24db4adb5 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -610,6 +610,7 @@ function theme_links($links, $attributes = array('class' => 'links')) { function theme_image($path, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) { if (!$getsize || (is_file($path) && (list($width, $height, $type, $image_attributes) = @getimagesize($path)))) { $attributes = drupal_attributes($attributes); + $image_attributes = isset($image_attributes) ? $image_attributes : ''; $url = (url($path) == $path) ? $path : (base_path() . $path); return '<img src="'. check_url($url) .'" alt="'. check_plain($alt) .'" title="'. check_plain($title) .'" '. $image_attributes . $attributes .' />'; } |