Revision: 1446
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1446&view=rev
Author:   cimorrison
Date:     2010-09-05 13:42:13 +0000 (Sun, 05 Sep 2010)

Log Message:
-----------
Fixed bug whereby it was possible for delete notification emails to be sent 
even though they hadn't been requested.

Modified Paths:
--------------
    mrbs/trunk/web/del_entry.php

Modified: mrbs/trunk/web/del_entry.php
===================================================================
--- mrbs/trunk/web/del_entry.php        2010-09-05 13:33:36 UTC (rev 1445)
+++ mrbs/trunk/web/del_entry.php        2010-09-05 13:42:13 UTC (rev 1446)
@@ -63,7 +63,7 @@
     // Get the settings for this area (they will be needed for policy checking)
     get_area_settings($area);
     
-    $notify_by_email = $mail_settings['admin_on_delete']  || 
$mail_settings['book_admin_on_provisional'];
+    $notify_by_email = $mail_settings['admin_on_delete'] && $need_to_send_mail;
 
     if ($notify_by_email)
     {


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

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to