[Koha-bugs] [Bug 21036] Fix a bunch of older warnings

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 6 08:33:21 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21036

--- Comment #9 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to M. Tompsett from comment #8)
> Comment on attachment 76702 [details] [review]
> Bug 21036: Fix warnings from C4/Biblio
> 
> Review of attachment 76702 [details] [review]:
> -----------------------------------------------------------------
> 
> ::: C4/Biblio.pm
> @@ +2324,4 @@
> >          if ( ( @$tags[$i] ne $prevtag ) ) {
> >              $close_last_tag = 0;
> >              $j++ unless ( @$tags[$i] eq "" );
> > +            my $str = ( $indicator->[$j] // q{} ) . ' '; # extra space prevents substr outside of string warn
> 
> Shouldn't this be two spaces? just because substr(' ',1,1) doesn't explode,
> doesn't mean you shouldn't hand it a nice string.

This seems to be nice enough ;) Since $str goes directly into
_default_ind_to_space, it really does not matter. But I do not mind adding a
space..

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


More information about the Koha-bugs mailing list