mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 02:39:21 +03:00
Suppressed imap_open warning (still throwing exception after testing return results)
This commit is contained in:
parent
3448bffc17
commit
f86c17e629
@ -310,7 +310,7 @@ class Server
|
|||||||
if (!imap_reopen($this->imapStream, $this->getServerString(), $this->options, 1))
|
if (!imap_reopen($this->imapStream, $this->getServerString(), $this->options, 1))
|
||||||
throw new \RuntimeException(imap_last_error());
|
throw new \RuntimeException(imap_last_error());
|
||||||
} else {
|
} 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)
|
if ($imapStream === false)
|
||||||
throw new \RuntimeException(imap_last_error());
|
throw new \RuntimeException(imap_last_error());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user