summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle Sebreghts2012-08-22 16:10:49 (GMT)
committerJelle Sebreghts2012-08-22 16:10:49 (GMT)
commitcb615bd015ec26d8c01bae7e043b8ec9dae8a24f (patch)
tree360518a228f970ac44bac547d699e95cd4cddbdd
parent3e14bdaeb659bbe57230ed32cdeb38a953d2b1c3 (diff)
Issue #1655252 by sah62: Fixed Warning: Invalid argument supplied for foreach().
-rw-r--r--webform_multifile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webform_multifile.js b/webform_multifile.js
index 504d60d..9a4949f 100644
--- a/webform_multifile.js
+++ b/webform_multifile.js
@@ -5,7 +5,7 @@
// Add the extra brakets to all the Multifile fields
$("input[type=file].multi").once(function(){
var $field = $(this);
- var newname = $field.attr('name') + '[]';
+ var newname = ($field.attr('name') + '[]');
if ($.browser.msie === true) {
$field.replaceWith($($field.get(0).outerHTML.replace(/name=\w+/ig, 'name=' + newname)));
}