diff --git a/filefield_widget.inc b/filefield_widget.inc index cc91948..00d8879 100644 --- a/filefield_widget.inc +++ b/filefield_widget.inc @@ -479,7 +479,7 @@ function theme_filefield_widget($element) { function theme_filefield_widget_preview($item) { // Remove the current description so that we get the filename as the link. - if (isset($item['data']['description'])) { + if (isset($item['data']['description']) && is_array($item['data'])) { unset($item['data']['description']); }