r1238: We need to clear the Mail->to[] array to prevent weird multiple email issues
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 10 Oct 2006 05:54:54 +0000 (05:54 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 10 Oct 2006 05:54:54 +0000 (05:54 +0000)
docs/changes.txt
includes/class_notification.php

index 7a910c7da9f917622edcc3c209f19f5e450bd99f..2392c924d3897520f18c440ca40552a34cb3b417 100644 (file)
@@ -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
 ===============================
index 801a299d474be6eee4cb862101e191bf7df93592..d28aea5c23529d7f17fc5897933a788ca91ac8bf 100644 (file)
@@ -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,