[eluser]Colin Williams[/eluser]
Code:
// --------------------------------------------------------------------
/**
* Set Email Subject
*
* @access public
* @param string
* @return void
*/
function subject($subject)
{
if (strpos($subject, "\r") !== FALSE OR strpos($subject, "\n") !== FALSE)
{
$subject = str_replace(array("\r\n", "\r", "\n"), '', $subject);
}
if (strpos($subject, "\t"))
{
$subject = str_replace("\t", ' ', $subject);
}
$this->_set_header('Subject', trim($subject));
}
If you don't ever call subject(), then yes, you will probably see an error from line 930. Odd that the class doesn't do a check first (I don't think Subject is a required email header, is it?)