From e81496065a52ec482936151477acb587d05351c6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 Aug 2014 12:05:37 +0200 Subject: [PATCH] Bug 12802: FIX use the first valid email address if noemail is needed --- misc/cronjobs/overdue_notices.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 302e06b..c52ddc4 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -682,7 +682,7 @@ END_SQL city => $data->{'city'}, postcode => $data->{'zipcode'}, country => $data->{'country'}, - email => $notice_emails, + email => ( scalar( @emails_to_use ) ? $emails_to_use[0] : undef ), itemcount => $itemcount, titles => $titles, outputformat => defined $csvfilename ? 'csv' : defined $htmlfilename ? 'html' : defined $text_filename ? 'text' : '', -- 2.0.0.rc2