@@ -, +, @@ work with master --- C4/Search/History.pm | 4 ++-- misc/cronjobs/cleanup_database.pl | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) --- a/C4/Search/History.pm +++ a/C4/Search/History.pm @@ -73,8 +73,8 @@ sub delete { $id = $id ? [ $id ] : []; } - unless ( $userid or @$id ) { - warn "ERROR: userid or id is required for history deletion"; + unless ( $userid or @$id or $interval ) { + warn "ERROR: userid, id or interval is required for history deletion"; return; } --- a/misc/cronjobs/cleanup_database.pl +++ a/misc/cronjobs/cleanup_database.pl @@ -37,6 +37,7 @@ BEGIN { use C4::Context; use C4::Dates; use C4::Search; +use C4::Search::History; use Getopt::Long; use C4::Log; --