Aleksander Machniak
2015-02-24 997ff77ea1f378b433ba069590fc879f8cc86ab2
Fix "PHP Fatal error: Call to a member function getMessage() on a non-object"
1 files modified
3 ■■■■ changed files
program/lib/Roundcube/rcube_smtp.php 3 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_smtp.php
@@ -288,7 +288,8 @@
        }
        // 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]);