Suppressed imap_open warning (still throwing exception after testing return results)

This commit is contained in:
Robert Hafner 2015-08-01 20:32:46 -07:00
parent 3448bffc17
commit f86c17e629

View File

@ -310,7 +310,7 @@ class Server
if (!imap_reopen($this->imapStream, $this->getServerString(), $this->options, 1))
throw new \RuntimeException(imap_last_error());
} else {
$imapStream = imap_open($this->getServerString(), $this->username, $this->password, $this->options, 1, $this->params);
$imapStream = @imap_open($this->getServerString(), $this->username, $this->password, $this->options, 1, $this->params);
if ($imapStream === false)
throw new \RuntimeException(imap_last_error());