[dev] Undefined variable: recips

Serge Grondin SGrondin at csbf.qc.ca
Tue May 13 06:25:13 PDT 2003


Hi,

I have the following error in my php log when people "bounce" message in
IMP RELENG_3.

PHP Notice:  Undefined variable:  recips in /.../horde/imp/compose.php
on line 688

Here is the solution.

[root at courriel imp]# cvs diff -u compose.php
Index: compose.php
===================================================================
RCS file: /repository/imp/compose.php,v
retrieving revision 2.369.2.58
diff -u -r2.369.2.58 compose.php
--- compose.php 27 Mar 2003 17:23:01 -0000      2.369.2.58
+++ compose.php 13 May 2003 12:58:29 -0000
@@ -685,7 +685,7 @@
          $recipients = $f_to = format_addresses($f_to);

          /* Check for 8-bit characters in addresses. */
-         foreach (IMP::bareAddress($recips, true) as $val) {
+         foreach (IMP::bareAddress($recipients, true) as $val) {
              if (MIME::is8bit($val)) {
                  Horde::raiseMessage(_("Invalid character in e-mail
address."), HORDE_ERROR);
                  $get_sig = false;


And there is a inconsistency in the name of that variable,  In
"BOUNCE_MESSAGE", it's called $recipients and in "SEND_MESSAGE", it's
$recips.

Thanks for the good work.

--
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




More information about the dev mailing list