"dont stall whole preferences, if $mailpreferences is no object (PHP Fatal Error otherwise)"

This commit is contained in:
Ralf Becker 2009-06-14 10:42:02 +00:00
parent c1da9e199b
commit a0ca8afe63

View File

@ -28,14 +28,15 @@
if(empty($mailPreferences->preferences['prefpreventmanagefolders']) || $mailPreferences->preferences['prefpreventmanagefolders'] == 0) {
$file['Manage Folders'] = $GLOBALS['egw']->link('/index.php','menuaction=felamimail.uipreferences.listFolder');
}
$icServer = $mailPreferences->getIncomingServer(0);
if (is_object($mailPreferences))
{
$icServer = $mailPreferences->getIncomingServer(0);
if($icServer->enableSieve) {
$file['filter rules'] = $GLOBALS['egw']->link('/index.php', 'menuaction=felamimail.uisieve.listRules');
$file['vacation notice'] = $GLOBALS['egw']->link('/index.php','menuaction=felamimail.uisieve.editVacation');
if($icServer->enableSieve) {
$file['filter rules'] = $GLOBALS['egw']->link('/index.php', 'menuaction=felamimail.uisieve.listRules');
$file['vacation notice'] = $GLOBALS['egw']->link('/index.php','menuaction=felamimail.uisieve.editVacation');
}
}
//Do not modify below this line
display_section($appname,$title,$file);
}
?>