--- ./modules/filefield/filefield.module Thu Feb 14 07:00:44 2008 +++ ./modules/filefield/filefield.module Sun Feb 24 22:15:48 2008 @@ -714,9 +714,9 @@ $ext = 0; } $icon = ''; - $iconpath = base_path() .'/'. drupal_get_path('module','filefield') .'/ico/'. $ext .'.png'; - if (file_exists($iconpath)) { - $icon = ''; + $iconpath = base_path() . drupal_get_path('module','filefield') .'/ico/'. $ext .'.png'; + if (!$size=@getimagesize($iconpath)) { + $icon = ''; } return '
'. $icon .'
'; }