fix delete_userfiles flag not being passed via webinterface email-address-overview

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann 2020-11-12 08:54:52 +01:00
parent 35c4e3d1b9
commit cdb871b82b
No known key found for this signature in database
GPG Key ID: 55284EC83A4823B8

View File

@ -153,7 +153,8 @@ if ($page == 'overview') {
if (isset($_POST['send']) && $_POST['send'] == 'send') {
try {
Emails::getLocal($userinfo, array(
'id' => $id
'id' => $id,
'delete_userfiles' => ($_POST['delete_userfiles'] ?? 0)
))->delete();
} catch (Exception $e) {
\Froxlor\UI\Response::dynamic_error($e->getMessage());