From: miker Date: Wed, 4 Mar 2009 15:26:40 +0000 (+0000) Subject: do not look for transaction summaries if there are no transactions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0b72484d1e55e4ae21598b1836f86a63a0e66fab;p=Evergreen.git do not look for transaction summaries if there are no transactions git-svn-id: svn://svn.open-ils.org/ILS/trunk@12400 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm index 18db01d615..c1518cf3fd 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm @@ -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 ]})}; }