Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

Server::listMailBoxes incorrect result

Open Cosmologist opened this issue 8 years ago • 0 comments

Server::listMailBoxes is simple wrapper arround imap_list: return imap_list($this->getImapStream(), $this->getServerSpecification(), $pattern); but if error occured the imap_list does not return array - see documentation example.

You should check the result type and throw exception if the result is not array or change method signature.

Cosmologist avatar Feb 02 '17 13:02 Cosmologist