[Koha-bugs] [Bug 14185] Noisy warns in opac-readingrecord.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 13 06:56:49 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14185

--- Comment #4 from Aleisha Amohia <aleishaamohia at hotmail.com> ---
(In reply to M. Tompsett from comment #3)
> Comment on attachment 39111 [details] [review]
> Bug 14185: Undefined $limit causes warn in opac/opac-readingrecord.pl
> 
> Review of attachment 39111 [details] [review]:
> -----------------------------------------------------------------
> 
> ::: opac/opac-readingrecord.pl
> @@ +73,4 @@
> >  
> >  
> >  my $limit = $query->param('limit');
> > +$limit //= '';
> 
> This works, but why not add "// ''" to line 75?

I'm still very new to perl and had seen this warn solved this way before so
just did it again. Of course if you think your way is cleaner then do that!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list