From 58651f2219ced5656573a2c11fa31f6a266c3782 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 2 Aug 2021 10:04:01 -0300 Subject: [PATCH] Bug 28741: (follow-up) Silence warning Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- Koha/OAI/Server/ResumptionToken.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Koha/OAI/Server/ResumptionToken.pm b/Koha/OAI/Server/ResumptionToken.pm index 7f77542cb4..fb1d5cd01d 100644 --- a/Koha/OAI/Server/ResumptionToken.pm +++ b/Koha/OAI/Server/ResumptionToken.pm @@ -61,6 +61,9 @@ sub new { $next_id = $args{ next_id } // 0; } + # metadata_prefix can be undef (e.g. listSets) + $metadata_prefix //= ''; + $self->{ metadata_prefix } = $metadata_prefix; $self->{ cursor } = $cursor; $self->{ from } = $from; -- 2.39.5