Koha-clms/cataloguing
Galen Charlton 6c2b7f8ccb fix crash introduced in previous patch
In the previous patch,

-    my @subf = $field->subfields;
-    (defined @subf) or @subf = ();

is not equivalent to

+    my @subf = $field->subfields || ();

as, the results of $field->subields is interpeted in scalar
context, not list context, resutling in @subf containing
the number of subfields, not the subfield data itself, which
engenders the error

Can't use string ("1") as an ARRAY ref while "strict refs" in use

later on.  Changing the operator to 'or' instead of '||'
fixes this.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-07-14 22:05:24 -04:00
..
value_builder (bug #3395) fix unimarc plugin 225$a 2009-07-13 00:11:19 -04:00
addbiblio.pl fix for 2997 : superlibrarian's ability to edit item/patron home branch affected if all other privileges are selected 2009-05-28 17:06:46 -05:00
addbooks.pl Enable warnings in addbooks.pl Fix code generating undef and mis-matched op warnings Remove toggle variable 2009-06-24 09:02:59 -05:00
additem.pl fix crash introduced in previous patch 2009-07-14 22:05:24 -04:00
plugin_launcher.pl cataloge subdir (and cataloguing) - Dates.pm integration and warnings fixes. 2007-12-04 18:21:11 -06:00
z3950_search.pl Bug 2889: Removed toggle variable from z3950_search.pl. 2009-06-29 08:06:53 -05:00