make sure there is a mailbox unfolded, if there is no mailbox information stored, use INBOX

This commit is contained in:
Klaus Leithoff 2013-06-10 14:44:05 +00:00
parent 80ed97140a
commit b434fc655b

View File

@ -861,7 +861,7 @@ class felamimail_hooks
$_GET['menuaction'] != 'felamimail.uifelamimail.redirectToEmailadmin') { $_GET['menuaction'] != 'felamimail.uifelamimail.redirectToEmailadmin') {
if (isset($_GET["mailbox"])) if (isset($_GET["mailbox"]))
{ {
$bofelamimail->sessionData['mailbox'] = urldecode($_GET["mailbox"]); $bofelamimail->sessionData['mailbox'] = (!empty($_GET["mailbox"])?urldecode($_GET["mailbox"]):'INBOX');
$bofelamimail->sessionData['startMessage']= 1; $bofelamimail->sessionData['startMessage']= 1;
$bofelamimail->sessionData['sort'] = $preferences->preferences['sortOrder']; $bofelamimail->sessionData['sort'] = $preferences->preferences['sortOrder'];
$bofelamimail->sessionData['activeFilter']= -1; $bofelamimail->sessionData['activeFilter']= -1;
@ -888,7 +888,7 @@ class felamimail_hooks
// select account box, treeview, we use a whileloop as we may want to break out // select account box, treeview, we use a whileloop as we may want to break out
while($showMainScreenStuff) { while($showMainScreenStuff) {
$bofelamimail->restoreSessionData(); $bofelamimail->restoreSessionData();
$mailbox = $bofelamimail->sessionData['mailbox']; $mailbox = (!empty($bofelamimail->sessionData['mailbox'])?$bofelamimail->sessionData['mailbox']:'INBOX');
//_debug_array($mailbox); //_debug_array($mailbox);
$icServerID = (int)$bofelamimail->profileID; $icServerID = (int)$bofelamimail->profileID;