- only show checkbox for e-mail file deletion if there really is some data on the filesystem

This commit is contained in:
Michael Kaufmann (d00p)
2010-07-24 17:26:24 +00:00
parent e430092eda
commit 51673f3569
3 changed files with 53 additions and 4 deletions

View File

@@ -197,7 +197,12 @@ elseif($page == 'emails')
}
else
{
ask_yesno_withcheckbox('email_reallydelete', 'admin_customer_alsoremovemail', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['email_full']));
if(maildirExists($result)) {
$show_checkbox = true;
} else {
$show_checkbox = false;
}
ask_yesno_withcheckbox('email_reallydelete', 'admin_customer_alsoremovemail', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['email_full']), $show_checkbox);
}
}
}