From 5267605a79361597bb53dea96f6fc2235e54411f Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 21 Feb 2011 12:12:29 +0000 Subject: [PATCH] make sure the mail object is ALWAYS created new, as it may cause problems with the sender information, if notification is running as cronjob and trying to notify users with different senderinformation --- notifications/inc/class.notifications_email.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notifications/inc/class.notifications_email.inc.php b/notifications/inc/class.notifications_email.inc.php index e4cd88fb76..670b09a822 100644 --- a/notifications/inc/class.notifications_email.inc.php +++ b/notifications/inc/class.notifications_email.inc.php @@ -74,6 +74,11 @@ class notifications_email implements notifications_iface { { $this->mail = new send(); } + else + { + unset($this->mail); + $this->mail = new send(); + } } /**