Revision: 1932
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1932&view=rev
Author:   cimorrison
Date:     2011-09-07 08:42:58 +0000 (Wed, 07 Sep 2011)
Log Message:
-----------
Fixed bug whereby email notifications would not be sent if MRBS failed to find 
an address for those on the "To" line but there addresses on the "Cc" line.

Modified Paths:
--------------
    mrbs/trunk/web/functions_mail.inc

Modified: mrbs/trunk/web/functions_mail.inc
===================================================================
--- mrbs/trunk/web/functions_mail.inc   2011-09-06 15:02:08 UTC (rev 1931)
+++ mrbs/trunk/web/functions_mail.inc   2011-09-07 08:42:58 UTC (rev 1932)
@@ -757,7 +757,8 @@
 // create_addresses($data, $action)
 //
 // Returns an array indexed by 'from', 'to' and 'cc' with each element
-// consisting of a comma separated list of email addresses
+// consisting of a comma separated list of email addresses, or else
+// FALSE if there are no 'to' or 'cc' addresses
 //
 // Parameters:
 //   $data     an array containing all the data concerning this booking
@@ -849,8 +850,8 @@
       $to[] = $booker_email;
     }
   }
-  // In case $to is empty, no need to go further
-  if (empty($to))
+  // In case $to and $cc are empty, no need to go further
+  if (empty($to) && empty($cc))
   {
     return FALSE;
   }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to