From 629c1cca9f330db4e57c8ed3f505acf9f29b734e Mon Sep 17 00:00:00 2001 From: Tealk Date: Wed, 30 Jun 2021 09:36:21 +0200 Subject: [PATCH] fix $_POST variable --- securemail/securemail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securemail/securemail.php b/securemail/securemail.php index d396b3a8..112979a4 100644 --- a/securemail/securemail.php +++ b/securemail/securemail.php @@ -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())); -- 2.39.5