catching pear error on cmdStatus

This commit is contained in:
Klaus Leithoff 2012-01-06 14:57:52 +00:00
parent 298d681e2e
commit 12aa9dbe6d

View File

@ -1146,7 +1146,7 @@ class Net_IMAPProtocol {
$ret = $this->_genericCommand('STATUS', $mailbox_name.' ('.$request.')');
if (isset($ret['PARSED'])) {
if (!PEAR::isError($ret) && isset($ret['PARSED'])) {
foreach ($ret['PARSED'] as &$parsed)
{
if (!empty($parsed['EXT']))