mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01:00
fix fatal error, when getNamespace is giving a PEAR Error
This commit is contained in:
parent
3d57038c0e
commit
72b234398a
@ -399,21 +399,21 @@ class defaultimap extends Net_IMAP
|
||||
|
||||
$retrieveDefault = false;
|
||||
if($this->hasCapability('NAMESPACE')) {
|
||||
$nameSpace = $this->getNamespace();
|
||||
if( PEAR::isError($nameSpace)) {
|
||||
if ($this->debug) error_log("emailadmin::defaultimap->getNameSpaces:".print_r($nameSpace,true));
|
||||
$lNameSpace = $this->getNamespace();
|
||||
if( PEAR::isError($lNameSpace)) {
|
||||
if ($this->debug) error_log("emailadmin::defaultimap->getNameSpaces:".print_r($lNameSpace,true));
|
||||
$retrieveDefault = true;
|
||||
} else {
|
||||
$result = array();
|
||||
|
||||
$result['personal'] = $nameSpace['personal'];
|
||||
$result['personal'] = $lNameSpace['personal'];
|
||||
|
||||
if(is_array($nameSpace['others'])) {
|
||||
$result['others'] = $nameSpace['others'];
|
||||
if(is_array($lNameSpace['others'])) {
|
||||
$result['others'] = $lNameSpace['others'];
|
||||
}
|
||||
|
||||
if(is_array($nameSpace['shared'])) {
|
||||
$result['shared'] = $nameSpace['shared'];
|
||||
if(is_array($lNameSpace['shared'])) {
|
||||
$result['shared'] = $lNameSpace['shared'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user