summaryrefslogtreecommitdiff
path: root/rhimport.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport.pm')
-rw-r--r--rhimport.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/rhimport.pm b/rhimport.pm
index 4729969..333e61c 100644
--- a/rhimport.pm
+++ b/rhimport.pm
@@ -97,7 +97,12 @@ sub clear_carts
{
my $dbh = shift;
my $group = shift;
- my ($low_cart, $high_cart) = get_cart_range($dbh, $group);
+ my $to_cart = shift;
+
+ my ($low_cart, $high_cart) = ($to_cart, $to_cart);
+ if($to_cart == 0) {
+ ($low_cart, $high_cart) = get_cart_range($dbh, $group);
+ }
print "clearing Carts $low_cart - $high_cart\n";
my $cart = $low_cart;