From 161f97a2ac26bd26bd301aa6efe89d11d00ffde6 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Thu, 14 Mar 2013 12:14:16 -0400 Subject: [PATCH] [PASSED QA] Bug 9239 QA follow-up: amend error handling Signed-off-by: Katrin Fischer --- C4/AuthoritiesMarc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index db06f3d..a2da403 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -1213,8 +1213,8 @@ sub GetAuthorizedHeading { unless ($record = $args->{record}) { return unless $args->{authid}; $record = GetAuthority($args->{authid}); - return unless $record; } + return unless (ref $record eq 'MARC::Record'); if (C4::Context->preference('marcflavour') eq 'UNIMARC') { # construct UNIMARC summary, that is quite different from MARC21 one # accepted form -- 1.7.9.5