Issue #857938 by craig_ and YesCT: Argument #2 is not an array in
authorNathan Haug
Wed, 27 Apr 2011 23:24:15 +0000 (17:24 -0600)
committerNathan Haug
Wed, 27 Apr 2011 23:24:15 +0000 (17:24 -0600)
/sites/all/modules/filefield/filefield_widget.inc on line 255.

filefield_widget.inc

index b640c07..4970721 100644 (file)
@@ -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.