fix $_POST variable

This commit is contained in:
Tealk 2021-06-30 09:36:21 +02:00
parent ad111e05df
commit 629c1cca9f
Signed by: Tealk
GPG Key ID: 5FE349ABC863E7F9
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ function securemail_settings_post(App &$a, array &$b)
$enable = (!empty($_POST['securemail-enable']) ? 1 : 0);
DI::pConfig()->set(local_user(), 'securemail', 'enable', $enable);
if ($_POST['securemail-submit'] == DI::l10n()->t('Save and send test')) {
if ($_POST['securemail-submit'] == "test" {
$res = DI::emailer()->send(new SecureTestEmail(DI::app(), DI::config(), DI::pConfig(), DI::baseUrl()));