From aca1d4bf7fd8d7c9288bd4445b7aa3cdad0caba1 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 27 Aug 2011 04:20:56 -0400
Subject: [PATCH] - Patch #1124786 by zambrey: fixed notice

---
 modules/image/image.field.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc
index 43e118a705f2..10d385da788b 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.
-- 
GitLab