summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/image/image.field.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc
index 43e118a70..10d385da7 100644
--- a/modules/image/image.field.inc
+++ b/modules/image/image.field.inc
@@ -547,7 +547,7 @@ function theme_image_formatter($variables) {
$output = theme('image', $image);
}
- if ($variables['path']) {
+ if (!empty($variables['path']['path'])) {
$path = $variables['path']['path'];
$options = $variables['path']['options'];
// When displaying an image inside a link, the html option must be TRUE.