[Koha-bugs] [Bug 15958] ZOOM/Zebra-connection cache flushing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 6 14:50:47 CEST 2016


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

--- Comment #2 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 48549
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48549
Bug 15958 - ZOOM/Zebra-connection cache flushing

Review of attachment 48549:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15958&attachment=48549)
-----------------------------------------------------------------

::: C4/Context.pm
@@ +788,5 @@
> +
> +=cut
> +
> +sub flushZconns {
> +	my @ZconnKeys = keys%{$context->{"Zconn"}} if ref($context->{"Zconn"}) eq 'HASH';

Not sure how to trigger, but if $context->{"Zconn"} is undefined or not a HASH,
then @ZconnKeys doesn't get defined, which will break the loop. Split
declarations from conditional initializations.

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


More information about the Koha-bugs mailing list