Bug 20563: (follow-up) Fix rebasing bug
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Thu, 29 Nov 2018 12:26:33 +0000 (12:26 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Mar 2019 19:33:37 +0000 (19:33 +0000)
Fix erroneous curly brackets

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

ill/ill-requests.pl

index d6be5c8..1598ea8 100755 (executable)
@@ -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 {