From: Tealk Date: Wed, 30 Jun 2021 07:36:21 +0000 (+0200) Subject: fix $_POST variable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=629c1cca9f330db4e57c8ed3f505acf9f29b734e;p=friendica-addons.git fix $_POST variable --- 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()));