Compare commits
2 Commits
c327ba6e04
...
900c2733e5
Author | SHA1 | Date | |
---|---|---|---|
900c2733e5 | |||
0f99446c92 |
|
@ -21,6 +21,10 @@ final class MDMailerHelper {
|
|||
* @return string
|
||||
*/
|
||||
public static function pgp_encrypt(string $to, string $msg):string {
|
||||
// Skip encryption if PGP_ENC_KEY is null
|
||||
if (MD_CONF_EMAIL::PGP_ENC_KEY === null) {
|
||||
return $msg;
|
||||
}
|
||||
|
||||
$gpg = new gnupg();
|
||||
$gpg->seterrormode(GNUPG_ERROR_EXCEPTION);
|
||||
|
|
Loading…
Reference in New Issue
Block a user