do not look for transaction summaries if there are no transactions
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Mar 2009 15:26:40 +0000 (15:26 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Mar 2009 15:26:40 +0000 (15:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12400 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm

index 18db01d..c1518cf 100644 (file)
@@ -1175,6 +1175,7 @@ sub make_mbts {
        my $self = shift;
     my $e = shift;
        my @xacts = @_;
+       return () if (!@xacts);
     return @{$e->search_money_billable_transaction_summary({id => [ map { $_->id } @xacts ]})};
 }