From: Michael M Slusarz Date: Wed, 22 Dec 2010 05:21:06 +0000 (-0700) Subject: Fix encrpytion default value X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6d37bbbca13a242b3fbe8851c7fb3a878326f278;p=horde.git Fix encrpytion default value --- 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))) {