|
From: Benjamin C. <bc...@us...> - 2001-08-29 13:57:00
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv10832
Modified Files:
bug.php
Log Message:
Only send the bug update email if there is someone to whom to send it
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- bug.php 2001/08/29 08:05:39 1.31
+++ bug.php 2001/08/29 13:56:56 1.32
@@ -156,10 +156,12 @@
'Comments' => textwrap($oldcomments,72,"\n ")."\n\n+".
textwrap($comments,72,"\n+ ")."\n"
));
- mail($toemail,"[Bug {$buginfo['bug_id']}] Changed - ".
- ($cf['title'] ? $cf['title'] : $buginfo['title']), $t->parse('main','emailout'),
- sprintf("From: %s\nReply-To: %s\nErrors-To: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n", ADMINEMAIL, ADMINEMAIL,
- ADMINEMAIL, $STRING['lang_charset']));
+ if ($toemail) {
+ mail($toemail,"[Bug {$buginfo['bug_id']}] Changed - ".
+ ($cf['title'] ? $cf['title'] : $buginfo['title']), $t->parse('main','emailout'),
+ sprintf("From: %s\nReply-To: %s\nErrors-To: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n", ADMINEMAIL, ADMINEMAIL,
+ ADMINEMAIL, $STRING['lang_charset']));
+ }
}
function update_bug($bugid = 0) {
|