mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
catch exeption on CreateObject of bopreferences, if no felamimail is available
This commit is contained in:
parent
74e4e5ee3f
commit
4f1d0f9ff0
@ -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