mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-01 10:59:35 +01:00
make sure there is an mailObject before you try to do anything else
This commit is contained in:
parent
6549ed94a2
commit
a23919ea4b
@ -447,16 +447,16 @@
|
|||||||
function viewMainScreen()
|
function viewMainScreen()
|
||||||
{
|
{
|
||||||
#printf ("this->uifelamimail->viewMainScreen() start: %s<br>",date("H:i:s",mktime()));
|
#printf ("this->uifelamimail->viewMainScreen() start: %s<br>",date("H:i:s",mktime()));
|
||||||
$bopreferences =& CreateObject('felamimail.bopreferences');
|
$bopreferences = CreateObject('felamimail.bopreferences');
|
||||||
$bofilter =& CreateObject('felamimail.bofilter');
|
$bofilter = CreateObject('felamimail.bofilter');
|
||||||
$uiwidgets =& CreateObject('felamimail.uiwidgets');
|
$uiwidgets = CreateObject('felamimail.uiwidgets');
|
||||||
|
|
||||||
$preferences =& $bopreferences->getPreferences();
|
$preferences =& $bopreferences->getPreferences();
|
||||||
$urlMailbox = urlencode($this->mailbox);
|
$urlMailbox = urlencode($this->mailbox);
|
||||||
|
|
||||||
$imapServer =& $preferences->getIncomingServer(0);
|
if (is_object($preferences)) $imapServer =& $preferences->getIncomingServer(0);
|
||||||
#_debug_array($imapServer);
|
#_debug_array($imapServer);
|
||||||
$activeIdentity =& $preferences->getIdentity(0);
|
if (is_object($preferences)) $activeIdentity =& $preferences->getIdentity(0);
|
||||||
#_debug_array($activeIdentity);
|
#_debug_array($activeIdentity);
|
||||||
$maxMessages =& $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'];
|
$maxMessages =& $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'];
|
||||||
if (empty($maxMessages)) $maxMessages = 23; // this seems to be the number off messages that fit the height of the folder tree
|
if (empty($maxMessages)) $maxMessages = 23; // this seems to be the number off messages that fit the height of the folder tree
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
$file['Manage Folders'] = $GLOBALS['egw']->link('/index.php','menuaction=felamimail.uipreferences.listFolder');
|
$file['Manage Folders'] = $GLOBALS['egw']->link('/index.php','menuaction=felamimail.uipreferences.listFolder');
|
||||||
}
|
}
|
||||||
|
|
||||||
$icServer = $preferences->getIncomingServer(0);
|
if (is_object($preferences)) $icServer = $preferences->getIncomingServer(0);
|
||||||
if(is_a($icServer, 'defaultimap')) {
|
if(is_a($icServer, 'defaultimap')) {
|
||||||
if($icServer->enableSieve)
|
if($icServer->enableSieve)
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$ogServer = $preferences->getOutgoingServer(0);
|
if (is_object($preferences)) $ogServer = $preferences->getOutgoingServer(0);
|
||||||
if(is_a($ogServer, 'defaultsmtp')) {
|
if(is_a($ogServer, 'defaultsmtp')) {
|
||||||
if($ogServer->editForwardingAddress)
|
if($ogServer->editForwardingAddress)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user