Commit cb615bd0 authored by Jelle_S's avatar Jelle_S

Issue #1655252 by sah62: Fixed Warning: Invalid argument supplied for foreach().

parent 3e14bdae
......@@ -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)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment