Fix some issues caught by HipHop, and work around some issues

caused by HipHop.
This commit is contained in:
epriestley
2011-02-26 20:57:21 -08:00
parent d4bd2b0edd
commit eccc76dae6
20 changed files with 116 additions and 85 deletions

View File

@@ -370,7 +370,7 @@ class PHPMailerLite {
*/
private function AddAnAddress($kind, $address, $name = '') {
if (!preg_match('/^(to|cc|bcc|ReplyTo)$/', $kind)) {
echo 'Invalid recipient array: ' . kind;
echo 'Invalid recipient array: ' . $kind;
return false;
}
$address = trim($address);