From 8ebe67393156721ba8ea56269ccd17e836b8ad49 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 --- 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