From a833cefc1cca68fb6ea3c5fa3207b0db2787f867 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 26 Feb 2018 13:01:05 -0300 Subject: [PATCH] Bug 13287: Remove warning if --days is not passed and pref empty --- misc/cronjobs/purge_suggestions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/purge_suggestions.pl b/misc/cronjobs/purge_suggestions.pl index 543d629273..766f501db5 100755 --- a/misc/cronjobs/purge_suggestions.pl +++ b/misc/cronjobs/purge_suggestions.pl @@ -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 { -- 2.11.0