diff --git a/misc/cronjobs/writeoff_debts.pl b/misc/cronjobs/writeoff_debts.pl index ede37ba900..ec990c41a3 100755 --- a/misc/cronjobs/writeoff_debts.pl +++ b/misc/cronjobs/writeoff_debts.pl @@ -32,7 +32,7 @@ if ( !$confirm && !$verbose ) { @type = split( /,/, join( ',', @type ) ); -if ( !$file && !@type && !$before && !$after ) { +if ( !$file && !@type && !$before && !$after && !@category_code ) { say STDERR "Missing required filter option: at least one filter option should be used"; pod2usage(2); }