]> git.mxchange.org Git - friendica-addons.git/commitdiff
fix $_POST variable
authorTealk <tealk@anzah.email>
Wed, 30 Jun 2021 07:36:21 +0000 (09:36 +0200)
committerTealk <tealk@anzah.email>
Wed, 30 Jun 2021 07:36:21 +0000 (09:36 +0200)
securemail/securemail.php

index d396b3a8c774e27916d772422b099d00c92fc905..112979a47d729d4845887c1c7d7fa389cd5e72b0 100644 (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()));