mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:51 +01:00
Fix as discussed on the developer list:
Check for the availability of mailpreferences before using them.
This commit is contained in:
parent
de818e86e3
commit
d2a0adfa16
@ -222,6 +222,7 @@
|
|||||||
*/
|
*/
|
||||||
function addAccount($_hookValues)
|
function addAccount($_hookValues)
|
||||||
{
|
{
|
||||||
|
if ($this->mailPreferences) {
|
||||||
$icServer = $this->mailPreferences->getIncomingServer(0);
|
$icServer = $this->mailPreferences->getIncomingServer(0);
|
||||||
if(is_a($icServer,'defaultimap')) {
|
if(is_a($icServer,'defaultimap')) {
|
||||||
$icServer->addAccount($_hookValues);
|
$icServer->addAccount($_hookValues);
|
||||||
@ -232,6 +233,7 @@
|
|||||||
$ogServer->addAccount($_hookValues);
|
$ogServer->addAccount($_hookValues);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function adminMenu()
|
function adminMenu()
|
||||||
{
|
{
|
||||||
@ -524,6 +526,7 @@
|
|||||||
|
|
||||||
function deleteAccount($_hookValues)
|
function deleteAccount($_hookValues)
|
||||||
{
|
{
|
||||||
|
if ($this->mailPreferences) {
|
||||||
$icServer = $this->mailPreferences->getIncomingServer(0);
|
$icServer = $this->mailPreferences->getIncomingServer(0);
|
||||||
if(is_a($icServer,'defaultimap')) {
|
if(is_a($icServer,'defaultimap')) {
|
||||||
$icServer->deleteAccount($_hookValues);
|
$icServer->deleteAccount($_hookValues);
|
||||||
@ -534,6 +537,7 @@
|
|||||||
$ogServer->deleteAccount($_hookValues);
|
$ogServer->deleteAccount($_hookValues);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* delete a existing folder
|
* delete a existing folder
|
||||||
|
Loading…
Reference in New Issue
Block a user