#590: type mismatch phpmailer->SMTPDebug vs. smtp->do_debug
------------------------------------------------+---------------------------
Reporter: Edward Gray <[EMAIL PROTECTED]> | Owner: anonymous
Type: bug | Status: new
Priority: normal | Milestone: 0.68
Component: Général | Version: 0.68
Severity: minor | Keywords:
------------------------------------------------+---------------------------
using glpi-trunk-2006-06-13.
line 529 of /lib/phpmailer/class.phpmailer.php has:[[BR]]
$this->smtp->do_debug = $this->SMTPDebug;
where SMTPDebug is boolean, default 'false' (from line 199: var
$SMTPDebug = false;)
but in /lib/phpmailer/class.smtp.php[[BR]]
do_debug is integer, default '0' (from line 62: $this->do_debug =
0;)
and various lines of class.smtp.php compare do_debug as integer. of course
this condition (do_debug >= <some integer>) always evaluates to 'true'!
not sure if it is better to make phpmailer->SMTPDebug to be integer, or to
make smtp->do_debug to be boolean. /inc/mailing.class.php uses boolean
SMTPDebug as well.
--
Ticket URL: <https://dev.indepnet.net:8080/glpi/ticket/590>
GLPI <https://dev.indepnet.net:8080/glpi/>
Gestion Libre de Parc Informatique
_______________________________________________
Glpi-bugtrack mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-bugtrack