From 678e3f6e208ed47820132215806519f5162545fb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 May 2024 09:24:06 +0200 Subject: [PATCH] Bug 36858: Remove warnings Argument "" isn't numeric in int Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- opac/opac-shelves.pl | 4 ++-- virtualshelves/shelves.pl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index 2b0d245adc..cf1a5184e5 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -86,8 +86,8 @@ if (C4::Context->preference("BakerTaylorEnabled")) { ); } -my $referer = $query->param('referer') || $op; -my $page = int( $query->param('page') // q{} ) || 1; +my $referer = $query->param('referer') || $op; +my $page = int( $query->param('page') || 1 ); my $public = 0; $public = 1 if $query->param('public') && $query->param('public') == 1; diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl index 63ed99962e..badd78f995 100755 --- a/virtualshelves/shelves.pl +++ b/virtualshelves/shelves.pl @@ -54,9 +54,9 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $op = $query->param('op') || 'list'; -my $referer = $query->param('referer') || $op; -my $page = int( $query->param('page') // q{} ) || 1; +my $op = $query->param('op') || 'list'; +my $referer = $query->param('referer') || $op; +my $page = int( $query->param('page') || 1 ); my $public = $query->param('public') ? 1 : 0; my ( $shelf, $shelfnumber, @messages, $allow_transfer ); -- 2.39.5