mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 23:38:58 +01:00
handling possible PEAR Error when fetching the CAPABILITY
This commit is contained in:
parent
57869d398d
commit
dbade56f3f
@ -1086,7 +1086,7 @@ class Net_IMAPProtocol {
|
||||
{
|
||||
$ret = $this->_genericCommand( 'CAPABILITY' );
|
||||
|
||||
if(isset( $ret["PARSED"] ) ){
|
||||
if(!PEAR::isError($ret) && isset( $ret["PARSED"] ) ){
|
||||
foreach($ret["PARSED"] as $substruct) {
|
||||
if ($substruct["COMMAND"] == "CAPABILITY") {
|
||||
$subrv=$substruct["EXT"]["CAPABILITY"];
|
||||
|
Loading…
Reference in New Issue
Block a user