From 65e8198090b18e1ed2d7a896eb566a254a249016 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 29 Nov 2018 12:26:33 +0000 Subject: [PATCH] Bug 20563: (follow-up) Fix rebasing bug Fix erroneous curly brackets Signed-off-by: Josef Moravec --- ill/ill-requests.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index d6be5c89b2..1598ea862c 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -247,10 +247,10 @@ if ( $backends_available ) { } catch { my $error; - if ( $_->isa( 'Koha::Exceptions::Ill::NoTargetEmail' ) ) { + if ( ref($_) eq 'Koha::Exceptions::Ill::NoTargetEmail' ) { $error = 'no_target_email'; } - elsif ( $_->isa( 'Koha::Exceptions::Ill::NoLibraryEmail' ) ) { + elsif ( ref($_) eq 'Koha::Exceptions::Ill::NoLibraryEmail' ) { $error = 'no_library_email'; } else { -- 2.11.0