X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=circ%2Foverdue.pl;h=3797926a2712ecbbc7b2664276424deadad5f10e;hb=93129d5f4a2f2b4cdf93eff906920474499ff33d;hp=e8e280fdfe19c84a0e308bc87fee409148627cb7;hpb=f2c3c027bd055c38d06feaaacb9f610ca2ae9aa5;p=koha.git diff --git a/circ/overdue.pl b/circ/overdue.pl index e8e280fdfe..3797926a27 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -56,7 +56,8 @@ my $dbh = C4::Context->dbh; # download the complete CSV if ($op eq 'csv') { warn "BRANCH : $branchfilter"; - my $csv = `../misc/cronjobs/overdue_notices.pl -csv -n -library $branchfilter`; + my $lib = $branchfilter ? "-library $branchfilter" :''; + my $csv = `../misc/cronjobs/overdue_notices.pl -csv -n $lib`; print $input->header(-type => 'application/vnd.sun.xml.calc', -encoding => 'utf-8', -attachment=>"overdues.csv",