only try to trigger a connect, when there is a profileID

This commit is contained in:
Klaus Leithoff 2013-12-05 09:12:17 +00:00
parent 892cdf5775
commit 38644b8b3c

View File

@ -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);