View | Details | Raw Unified | Return to bug 8168
Collapse All | Expand All

(-)a/misc/cronjobs/overdue_notices.pl (-3 / +9 lines)
Lines 627-634 END_SQL Link Here
627
                print @output_chunks;
627
                print @output_chunks;
628
        }
628
        }
629
        # Generate the content of the csv with headers
629
        # Generate the content of the csv with headers
630
        my $content = join(";", qw(title name surname address1 address2 zipcode city country email itemcount itemsinfo due_date issue_date)) . "\n";
630
		my $content;
631
        $content .= join( "\n", @output_chunks );
631
		if ( defined $csvfilename ) {
632
			 $content = join(";", qw(title name surname address1 address2 zipcode city country email 				itemcount itemsinfo due_date issue_date)) . "\n";        	
633
		}
634
		else {
635
			 $content = "";
636
		}
637
		$content .= join( "\n", @output_chunks );
638
        
632
            
639
            
633
        my $attachment = {
640
        my $attachment = {
634
            filename => defined $csvfilename ? 'attachment.csv' : 'attachment.txt',
641
            filename => defined $csvfilename ? 'attachment.csv' : 'attachment.txt',
635
- 

Return to bug 8168