From ba02c6496f74ca87649f2b3011fd01c38f6365bd Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 7 Jan 2009 20:08:10 -0700 Subject: [PATCH] Fix encrypt option select list generation --- imp/lib/IMP.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index 3d3685897..ee4507350 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -1071,12 +1071,12 @@ class IMP $default = $GLOBALS['prefs']->getValue('default_encrypt'); } - $enc_opts = array(); + $enc_opts = array(self::ENCRYPT_NONE => _("No Encryption")); $output = ''; if (!empty($GLOBALS['conf']['utils']['gnupg']) && $GLOBALS['prefs']->getValue('use_pgp')) { - $enc_opts = array( + $enc_opts += array( self::PGP_ENCRYPT => _("PGP Encrypt Message"), self::PGP_SIGN => _("PGP Sign Message"), self::PGP_SIGNENC => _("PGP Sign/Encrypt Message"), @@ -1085,15 +1085,13 @@ class IMP ); } if ($GLOBALS['prefs']->getValue('use_smime')) { - $enc_opts = array_merge($enc_opts, array( + $enc_opts += array( self::SMIME_ENCRYPT => _("S/MIME Encrypt Message"), self::SMIME_SIGN => _("S/MIME Sign Message"), self::SMIME_SIGNENC => _("S/MIME Sign/Encrypt Message") - )); + ); } - $enc_opts = array_merge(array(self::ENCRYPT_NONE => _("No Encryption")), $enc_opts); - foreach ($enc_opts as $key => $val) { $output .= '' . "\n"; } -- 2.11.0