diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-02-24 11:53:55 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-02-24 11:53:55 +0100 |
commit | 62b847bea39b00c4795d10443bf5105d49ff7e07 (patch) | |
tree | 77f86eeb6831d5fc07892107bc2f99986a6a9988 /program/lib/Roundcube/rcube_smtp.php | |
parent | 75e8a7d31352770ed029286e1e1b7bdb64311da9 (diff) |
Fix "PHP Fatal error: Call to a member function getMessage() on a non-object"
Diffstat (limited to 'program/lib/Roundcube/rcube_smtp.php')
-rw-r--r-- | program/lib/Roundcube/rcube_smtp.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_smtp.php b/program/lib/Roundcube/rcube_smtp.php index c3a51467b..b37b44426 100644 --- a/program/lib/Roundcube/rcube_smtp.php +++ b/program/lib/Roundcube/rcube_smtp.php @@ -288,7 +288,8 @@ class rcube_smtp } // Send the message's headers and the body as SMTP data. - if (PEAR::isError($this->conn->data($data, $text_headers))) { + $result = $this->conn->data($data, $text_headers); + if (PEAR::isError($result)) { $err = $this->conn->getResponse(); if (!in_array($err[0], array(354, 250, 221))) { $msg = sprintf('[%d] %s', $err[0], $err[1]); |