# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- C:\Users\ardee\Downloads\imagefield\imagefield.module
+++ C:\wamp\www\drupal\sites\all\modules\imagefield\imagefield.module
@@ -301,7 +301,9 @@
  */
 function theme_imagefield_image($file, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) {
   $file = (array) $file;
-
+  if($file['list'] == 0) {
+	  return FALSE;
+  }
   if ($getsize) {
     // Use cached width and height if available.
     if (!empty($file['data']['width']) && !empty($file['data']['height'])) {
@@ -339,7 +341,7 @@
   $url = file_create_url($path) . $query_string;
   $attributes['src'] = $url;
   $attributes = drupal_attributes($attributes);
-  return '<img '. $attributes .' />';
+  return '<img '. $attributes .' /><div class="imagefield-description">'. $file['data']['description'] .'</div>';
 }
 
 function theme_imagefield_item($item) {
