Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13547
Modified Files:
bug_reminder.php
Log Message:
limit the number of reminder recipients recorded to 50 to ensure that the
database record doesn't overflow. Reminder will still be sent to all.
Index: bug_reminder.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_reminder.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- bug_reminder.php 5 Oct 2004 17:20:25 -0000 1.16
+++ bug_reminder.php 17 Oct 2004 00:28:13 -0000 1.17
@@ -49,6 +49,13 @@
# Add reminder as bugnote if store reminders option is ON.
if ( ON == config_get( 'store_reminders' ) ) {
+ if ( count( $f_to ) > 50 ) { # too many recipients
to log, truncate the list
+ $t_to = array();
+ for ( $i=0; $i<$t_count_to; $i++ ) {
+ $t_to[] = $f_to[$i];
+ }
+ $f_to = $t_to;
+ }
$t_attr = '|' . implode( '|', $f_to ) . '|';
bugnote_add( $f_bug_id, $f_body, config_get(
'default_reminder_view_status' ) == VS_PRIVATE, REMINDER, $t_attr );
}
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|