From a8435679d41663f9045c4b68d65c06678ac71237 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 Signed-off-by: Nick Clemens --- 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.39.5