Bug 13287: Remove warning if --days is not passed and pref empty

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-02-26 13:01:05 -03:00
parent c39ea95e38
commit ec6fe57db0

View file

@ -62,7 +62,7 @@ $days = C4::Context->preference('PurgeSuggestionsOlderThan') if !defined($days);
if( !$confirm || $help || !defined($days) ) {
print "No confirm parameter passed!\n\n" if !$confirm && !$help;
print $usage;
} elsif( $days > 0 ) {
} elsif( $days and $days > 0 ) {
cronlogaction();
DelSuggestionsOlderThan($days);
} else {