Koha-clms/cataloguing
Galen Charlton 36f9ac9be2 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-09-16 23:19:41 +02:00
..
value_builder (bug #3458) fix die and unimarc 700-4 plugin 2009-09-16 23:19:32 +02:00
addbiblio.pl Avoid numeric comparisons with leading zeroes 2009-09-16 23:19:28 +02:00
addbooks.pl Enable warnings in addbooks.pl Fix code generating undef and mis-matched op warnings Remove toggle variable 2009-09-16 23:19:40 +02:00
additem.pl fix crash introduced in previous patch 2009-09-16 23:19:41 +02: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 3263: Staff Search Results Interface Changes 2009-09-16 23:19:37 +02:00