* committed patch from #1484775

release-0.6
till 17 years ago
parent 7eaf7ad543
commit 5998438b08

@ -36,6 +36,8 @@ if (!is_array($_SESSION['compose']['attachments']))
$response = ''; $response = '';
if (is_array($_FILES['_attachments']['tmp_name']))
{
foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath) foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath)
{ {
$tmpfname = tempnam($temp_dir, 'rcmAttmnt'); $tmpfname = tempnam($temp_dir, 'rcmAttmnt');
@ -75,7 +77,7 @@ foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath)
$OUTPUT->command('display_message', $msg, 'error'); $OUTPUT->command('display_message', $msg, 'error');
} }
} }
}
// send html page with JS calls as response // send html page with JS calls as response
$OUTPUT->command('show_attachment_form', false); $OUTPUT->command('show_attachment_form', false);

Loading…
Cancel
Save