From 8727b6602832e2e131160436163739316956e969 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Tue, 12 May 2015 03:01:35 +0000 Subject: [PATCH] Bug 14185: Undefined $limit causes warn in opac/opac-readingrecord.pl This patch sets $limit to be an empty string. To test: 1) On the OPAC, click on your account in the top right (Welcome, 'yourname') 2) Go to 'your reading history' tab 3) Notice warns in error log 4) Apply patch 5) Reload page 6) Notice page still works but no warns --- opac/opac-readingrecord.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl index 4a1ac78..795e90c 100755 --- a/opac/opac-readingrecord.pl +++ b/opac/opac-readingrecord.pl @@ -73,6 +73,7 @@ else { my $limit = $query->param('limit'); +$limit //= ''; $limit = ( $limit eq 'full' ) ? 0 : 50; my $issues = GetAllIssues( $borrowernumber, $order, $limit ); -- 1.7.10.4