projects
/
project/filefield.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
42c6ca6
)
Issue #857938 by craig_ and YesCT: Argument #2 is not an array in
author
Nathan Haug
Wed, 27 Apr 2011 23:24:15 +0000 (17:24 -0600)
committer
Nathan 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
patch
|
blob
|
blame
|
history
diff --git
a/filefield_widget.inc
b/filefield_widget.inc
index
b640c07
..
4970721
100644
(file)
--- 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.