bug 2386: adding newline between items in overdue notices
authorAndrew Moore <andrew.moore@liblime.com>
Wed, 23 Jul 2008 18:19:57 +0000 (13:19 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 24 Jul 2008 16:22:03 +0000 (11:22 -0500)
The lines for each item in the overdue notices were not separated by newlines. This cause them to
all be smashed together. I'm putting a newline between them.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
misc/cronjobs/overdue_notices.pl

index 1f87038..ced4e64 100755 (executable)
@@ -363,7 +363,7 @@ END_SQL
                 my $titles = "";
                 while ( my $item_info = $sth2->fetchrow_hashref() ) {
                     my @item_info = map { $_ =~ /date$/ ? format_date( $item_info->{$_} ) : $item_info->{$_} || '' } @item_content_fields;
-                    $titles .= join "\t", @item_info;
+                    $titles .= join "\t", @item_info . "\n";
                 }
                 $sth2->finish;