From 5e27c469057ab3a3692ebda6d081e1e5051af3a7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 10 Oct 2006 05:54:54 +0000 Subject: [PATCH] r1238: We need to clear the Mail->to[] array to prevent weird multiple email issues --- docs/changes.txt | 1 + includes/class_notification.php | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 7a910c7..2392c92 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -7,6 +7,7 @@ - Remove warnings on explain.php?do=products (http://www.bluestatic.org/bugs/showreport.php?bugid=29) - Removed SQL errors when deleting a product or version due to bad column names (http://www.bluestatic.org/bugs/showreport.php?bugid=28) [admin/product.php] - Added a way to view and approve "Pending" and "Awaiting" users +- Prevent a weird bug with notifications where multiple emails would be sent out to the wrong people 1.1.0 =============================== diff --git a/includes/class_notification.php b/includes/class_notification.php index 801a299..d28aea5 100644 --- a/includes/class_notification.php +++ b/includes/class_notification.php @@ -656,6 +656,7 @@ Initial report: continue; } + $this->registry->mail->to = array(); $this->registry->mail->to_add($this->users["$userid"]['displayname'], $this->users["$userid"]['email']); $this->registry->mail->set('bodytext', sprintf(_('Hi %1$s, -- 2.43.5