mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:28:53 +01:00
only try to trigger a connect, when there is a profileID
This commit is contained in:
parent
892cdf5775
commit
38644b8b3c
@ -122,7 +122,7 @@ class mail_hooks
|
||||
|
||||
$mail_bo = mail_bo::getInstance(true,$profileID);
|
||||
$profileID = $GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID'] = $mail_bo->profileID;
|
||||
if($mail_bo->openConnection($profileID)) {
|
||||
if($profileID && $mail_bo->openConnection($profileID)) {
|
||||
$folderObjects = $mail_bo->getFolderObjects(true, false);
|
||||
foreach($folderObjects as $folderName => $folderInfo) {
|
||||
#_debug_array($folderData);
|
||||
|
Loading…
Reference in New Issue
Block a user