Make this method return 1 and 0 like the description says. Currently the staff clien...
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Actor.pm
index 5e17c0f..7a7c219 100644 (file)
@@ -2602,8 +2602,13 @@ sub barcode_exists {
        my $e = new_editor(authtoken=>$auth);
        return $e->event unless $e->checkauth;
        my $card = $e->search_actor_card({barcode => $barcode});
-    return undef unless @$card;
-    return $card->[0]->usr;
+       if (@$card) {
+               return 1;
+       } else {
+               return 0;
+       }
+       #return undef unless @$card;
+       #return $card->[0]->usr;
 }