Welcome Guest, Not a member yet? Register   Sign In
Bug with Email Class: Undefined Subject, although it's sent!!!
#5

[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?)


Messages In This Thread
Bug with Email Class: Undefined Subject, although it's sent!!! - by El Forum - 08-03-2008, 06:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB