PHP Classes

Great class after bug fixes

Recommend this page to a friend!

      Complete Emailer Class  >  All threads  >  Great class after bug fixes  >  (Un) Subscribe thread alerts  
Subject:Great class after bug fixes
Summary:Bugs in class
Messages:1
Author:Stephen Kirby
Date:2006-05-06 11:50:08
 

  1. Great class after bug fixes   Reply   Report abuse  
Picture of Stephen Kirby Stephen Kirby - 2006-05-06 11:50:08
In function add_recipient

this line
---------
if (strlen($name) == 0) {
array_push($this->warnings,"No recipient name for " . $addy);
} else {
$build_address = (strlen($name) == 0) ? $name . " " : "";

should be
---------
if (strlen($name) == 0) {
array_push($this->warnings,"No recipient name for " . $addy);
} else {
$build_address = $name . " ";

This line
---------
if (count($this->Recipients) > 0) {
$this->Recipients .= " , " . $build_address;

should be
---------
if (count($this->Recipients) > 1) {
$this->Recipients .= " , " . $build_address;