[Fusionforge-commits] r7624 - in branches/Branch_4_7/gforge: common/forum debian

Roland Mas lolando at libremir.placard.fr.eu.org
Thu May 7 15:07:55 CEST 2009


Author: lolando
Date: 2009-05-07 15:07:54 +0200 (Thu, 07 May 2009)
New Revision: 7624

Modified:
   branches/Branch_4_7/gforge/common/forum/ForumMessage.class.php
   branches/Branch_4_7/gforge/debian/changelog
Log:
Fixed email sending in forums

Modified: branches/Branch_4_7/gforge/common/forum/ForumMessage.class.php
===================================================================
--- branches/Branch_4_7/gforge/common/forum/ForumMessage.class.php	2009-05-07 09:54:06 UTC (rev 7623)
+++ branches/Branch_4_7/gforge/common/forum/ForumMessage.class.php	2009-05-07 13:07:54 UTC (rev 7624)
@@ -696,12 +696,18 @@
 		}
 
 		$subject="[" . $this->Forum->getUnixName() ."][".$this->getID()."] ".util_unconvert_htmlspecialchars($this->getSubject());
+		$BCCadds = explode (',', $this->Forum->getSendAllPostsTo());
 		if (count($ids) != 0) {
 			// maybe we have no monitoring ids. this was causing a transaction to be aborted because of being called everytime
 			$sql="SELECT email FROM users WHERE status='A' AND user_id IN ('".implode($ids,'\',\'')."')";
 			$bccres = db_query($sql);
+			for ($i=0;$i<db_numrows($bccres);$i++) {
+				$aux = db_fetch_array($res);
+				$BCCadds[] = $aux[0];
+			}
+
 		}
-		$BCC =& implode(util_result_column_to_array($bccres),',').','.$this->Forum->getSendAllPostsTo();
+		$BCC = implode(',', $BCCadds);
 //echo $BCC;
 		$User = user_get_object($this->getPosterID());
 		util_send_message('',$subject,$body,"noreply@".$GLOBALS['sys_default_domain'],$BCC,'Forum',$extra_headers);

Modified: branches/Branch_4_7/gforge/debian/changelog
===================================================================
--- branches/Branch_4_7/gforge/debian/changelog	2009-05-07 09:54:06 UTC (rev 7623)
+++ branches/Branch_4_7/gforge/debian/changelog	2009-05-07 13:07:54 UTC (rev 7624)
@@ -2,8 +2,9 @@
 
   * gforge-plugin-scmsvn: For some reason the code setting up the inetd
     was missing.  Re-added it.
+  * Fixed email sending in forums.
 
- -- Roland Mas <lolando at debian.org>  Thu, 07 May 2009 11:53:20 +0200
+ -- Roland Mas <lolando at debian.org>  Thu, 07 May 2009 15:05:14 +0200
 
 gforge (4.7.2-8) unstable; urgency=low
 




More information about the Fusionforge-commits mailing list