diff --git a/Koha/ImportBatch.pm b/Koha/ImportBatch.pm index eb1037d8af..f8f3172c8d 100644 --- a/Koha/ImportBatch.pm +++ b/Koha/ImportBatch.pm @@ -102,7 +102,7 @@ sub new_from_file { ); } - if ($errors) { + if ( scalar @$errors ) { Koha::Logger->get->warn( 'The following error(s) occurred during ' . ( defined $format ? ( $format . " " ) : "" ) . "record import:\nERROR: "