summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Haug2011-04-27 17:24:15 -0600
committerNathan Haug2011-04-27 17:24:15 -0600
commit08b0c6c639af9d48f71770dd4d7778e80120fc08 (patch)
tree9196a46f3e315927237152f085420473714818f1
parent42c6ca6cd0ef000613f42204ddf6683aba3f1d1d (diff)
Issue #857938 by craig_ and YesCT: Argument #2 is not an array in
/sites/all/modules/filefield/filefield_widget.inc on line 255.
-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.