forked from extern/egroupware
catch exeption on CreateObject of bopreferences, if no felamimail is available
This commit is contained in:
parent
38032d34fd
commit
9cd7b40add
@ -44,7 +44,14 @@ class send extends egw_mailer
|
|||||||
// if dontUseUserDefinedProfiles is set to yes/true/1 dont restore the session AND dont retrieve UserdefinedAccount settings
|
// if dontUseUserDefinedProfiles is set to yes/true/1 dont restore the session AND dont retrieve UserdefinedAccount settings
|
||||||
$notification_config = config::read('notifications');
|
$notification_config = config::read('notifications');
|
||||||
if ($notification_config['dontUseUserDefinedProfiles']) $restoreSession = $getUserDefinedProfiles = false;
|
if ($notification_config['dontUseUserDefinedProfiles']) $restoreSession = $getUserDefinedProfiles = false;
|
||||||
|
try
|
||||||
|
{
|
||||||
$bopreferences =& CreateObject('felamimail.bopreferences',$restoreSession);
|
$bopreferences =& CreateObject('felamimail.bopreferences',$restoreSession);
|
||||||
|
}
|
||||||
|
catch (egw_exception_assertion_failed $e)
|
||||||
|
{
|
||||||
|
$bopreferences = false;
|
||||||
|
}
|
||||||
if ($bopreferences) {
|
if ($bopreferences) {
|
||||||
if ($this->debug) error_log(__METHOD__." using felamimail preferences for mailing.");
|
if ($this->debug) error_log(__METHOD__." using felamimail preferences for mailing.");
|
||||||
// if dontUseUserDefinedProfiles is set to yes/true/1 dont retrieve UserdefinedAccount settings
|
// if dontUseUserDefinedProfiles is set to yes/true/1 dont retrieve UserdefinedAccount settings
|
||||||
|
Loading…
Reference in New Issue
Block a user