mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-13 00:40:34 +01:00
fixed fatal error: Cannot use object of type PEAR_Error as array, happening eg. if no or wrong credentials
This commit is contained in:
parent
4f16a9714d
commit
0ec25e276a
@ -1529,7 +1529,7 @@ class Net_IMAPProtocol {
|
|||||||
}
|
}
|
||||||
$mailbox_name=sprintf("%s",$this->utf_7_encode($mailbox_name) );
|
$mailbox_name=sprintf("%s",$this->utf_7_encode($mailbox_name) );
|
||||||
$ret = $this->_genericCommand('GETQUOTA', $mailbox_name );
|
$ret = $this->_genericCommand('GETQUOTA', $mailbox_name );
|
||||||
if(isset( $ret["PARSED"] ) ){
|
if(!is_object($ret) && isset( $ret["PARSED"] ) ){
|
||||||
// remove the array index because the quota response returns only 1 line of output
|
// remove the array index because the quota response returns only 1 line of output
|
||||||
$ret['PARSED']=$ret["PARSED"][0];
|
$ret['PARSED']=$ret["PARSED"][0];
|
||||||
}
|
}
|
||||||
@ -1556,7 +1556,7 @@ class Net_IMAPProtocol {
|
|||||||
$mailbox_name=sprintf("%s",$this->utf_7_encode($mailbox_name) );
|
$mailbox_name=sprintf("%s",$this->utf_7_encode($mailbox_name) );
|
||||||
$ret = $this->_genericCommand('GETQUOTAROOT', $mailbox_name );
|
$ret = $this->_genericCommand('GETQUOTAROOT', $mailbox_name );
|
||||||
|
|
||||||
if(isset( $ret["PARSED"] ) ){
|
if(!is_object($ret) && isset( $ret["PARSED"] ) ){
|
||||||
// remove the array index because the quota response returns only 1 line of output
|
// remove the array index because the quota response returns only 1 line of output
|
||||||
$ret['PARSED']=$ret["PARSED"][1];
|
$ret['PARSED']=$ret["PARSED"][1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user