mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-07 14:39:56 +01:00
catching pear error on cmdStatus
This commit is contained in:
parent
298d681e2e
commit
12aa9dbe6d
@ -1146,18 +1146,18 @@ class Net_IMAPProtocol {
|
||||
|
||||
$ret = $this->_genericCommand('STATUS', $mailbox_name.' ('.$request.')');
|
||||
|
||||
if (isset($ret['PARSED'])) {
|
||||
foreach ($ret['PARSED'] as &$parsed)
|
||||
{
|
||||
if (!empty($parsed['EXT']))
|
||||
{
|
||||
if(empty($ret['RESPONSE']['CODE'])) $ret['RESPONSE']['CODE'] ='OK';
|
||||
$ret['PARSED'] = $parsed['EXT'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!PEAR::isError($ret) && isset($ret['PARSED'])) {
|
||||
foreach ($ret['PARSED'] as &$parsed)
|
||||
{
|
||||
if (!empty($parsed['EXT']))
|
||||
{
|
||||
if(empty($ret['RESPONSE']['CODE'])) $ret['RESPONSE']['CODE'] ='OK';
|
||||
$ret['PARSED'] = $parsed['EXT'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user