From 6d37bbbca13a242b3fbe8851c7fb3a878326f278 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 21 Dec 2010 22:21:06 -0700 Subject: [PATCH] Fix encrpytion default value --- imp/lib/Compose.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 546abdb1d..065a11dfa 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -1177,7 +1177,9 @@ class IMP_Compose implements ArrayAccess, Countable, Iterator } /* Set up the base message now. */ - $encrypt = empty($options['encrypt']) ? 0 : $options['encrypt']; + $encrypt = empty($options['encrypt']) + ? IMP::ENCRYPT_NONE + : $options['encrypt']; if ($GLOBALS['prefs']->getValue('use_pgp') && !empty($GLOBALS['conf']['gnupg']['path']) && in_array($encrypt, array(IMP_Crypt_Pgp::ENCRYPT, IMP_Crypt_Pgp::SIGN, IMP_Crypt_Pgp::SIGNENC, IMP_Crypt_Pgp::SYM_ENCRYPT, IMP_Crypt_Pgp::SYM_SIGNENC))) { -- 2.11.0