Bug 10933: (follow-up) fix the previous patch to work with master

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Joonas Kylmälä 2015-08-31 11:41:44 +00:00 committed by Tomas Cohen Arazi
parent c4d3002995
commit 75cd02c048
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -37,6 +37,7 @@ BEGIN {
use C4::Context;
use C4::Dates;
use C4::Search;
use C4::Search::History;
use Getopt::Long;
use C4::Log;