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:
parent
c39ea95e38
commit
ec6fe57db0
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue