diff --git a/core/action.class.inc.php b/core/action.class.inc.php index adf8898f7..5e65a974b 100644 --- a/core/action.class.inc.php +++ b/core/action.class.inc.php @@ -262,8 +262,10 @@ class ActionEmail extends ActionNotification { $sPrefix = ''; } - $oLog->Set('message', $sPrefix.$sRes); - + if ($oLog) + { + $oLog->Set('message', $sPrefix . $sRes); + } } catch (Exception $e) {