nits
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 19 Nov 2008 03:54:46 +0000 (20:54 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 19 Nov 2008 03:54:46 +0000 (20:54 -0700)
imp/lib/Crypt/pgp.php

index 9711845..ef8eef4 100644 (file)
@@ -333,10 +333,10 @@ class IMP_Horde_Crypt_pgp extends Horde_Crypt_pgp
             return $public_key;
         }
 
-        if (!empty($signature)) {
-            $options = array('type' => 'detached-signature', 'signature' => $signature);
-        } else {
+        if (empty($signature)) {
             $options = array('type' => 'signature');
+        } else {
+            $options = array('type' => 'detached-signature', 'signature' => $signature);
         }
         $options['pubkey'] = $public_key;