summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filefield_widget.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/filefield_widget.inc b/filefield_widget.inc
index b640c07..4970721 100644
--- a/filefield_widget.inc
+++ b/filefield_widget.inc
@@ -239,6 +239,7 @@ function filefield_widget_value($element, $edit = FALSE) {
// If the file entry doesn't exist, don't save anything.
if (empty($file)) {
$item = array();
+ $file = array();
}
// Checkboxes loose their value when empty.