[dev] PHP Notice : Undefined index: gnupg

Matt Selsky selsky at columbia.edu
Tue Sep 27 13:26:13 PDT 2005


I can't reproduce this with HEAD.

On Tue, Sep 27, 2005 at 03:56:44PM -0400, Serge Grondin wrote:
> Hi,
> 
> This patch remove this Notice in 
> /horde/imp/templates/compose/encrypt_list.inc on line 6.
> 
> The $conf['utils']['gnupg'] is not set in the conf.php file if there is 
> nothing entered for the file path for the 'gpg' binary.
> 
> Thanks for the excellent work.
> 
> -- 
> Never argue with idiots;
> They'll drag you down to their own level
> and beat you on experience.
> 
>                                    Unknown author
> 
> Programming today is a race between software engineers
> to build bigger and better idiot-proof programs,
> and the Universe trying to produce bigger and better idiots.
> 
> So far, the Universe is winning.
>                                    Rich Cook - Author
> 
> Serge Grondin
> Technicien en Informatique
> Commission Scolaire des Bois-Francs
> Tel. bur.:   (819) 758-6453, poste 2920
> e-Mail bur.: SGrondin at csbf.qc.ca
> 

> Index: encrypt_list.inc
> ===================================================================
> RCS file: /repository/imp/templates/compose/encrypt_list.inc,v
> retrieving revision 2.3
> diff -u -r2.3 encrypt_list.inc
> --- encrypt_list.inc    16 Jul 2003 02:02:59 -0000      2.3
> +++ encrypt_list.inc    27 Sep 2005 19:34:54 -0000
> @@ -3,7 +3,7 @@
>          $encryptOpt = $prefs->getValue('default_encrypt');
>      }
>      $enc_options = array(IMP_ENCRYPT_NONE => _("No Encryption"));
> -    if ($conf['utils']['gnupg'] && $prefs->getValue('use_pgp')) {
> +    if (isset($conf['utils']['gnupg']) && $prefs->getValue('use_pgp')) {
>          $enc_options[IMP_PGP_ENCRYPT] = _("PGP Encrypt Message");
>          $enc_options[IMP_PGP_SIGN] = _("PGP Sign Message");
>          $enc_options[IMP_PGP_SIGNENC] = _("PGP Sign/Encrypt Message");

> 
> -- 
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org



More information about the dev mailing list