From 1a42d81247bc0bde9542b2bd2574a6a863c23a62 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 (cherry picked from commit 678e3f6e208ed47820132215806519f5162545fb) Signed-off-by: Fridolin Somers (cherry picked from commit 4c4349dbdb1ce156320909d5f9527d2206a80c9e) Signed-off-by: Lucas Gass --- 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 9d5779948e..19f47b44f2 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 cc2b658ce5..52cc6d6c9a 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