From 7b5f6f1b8ae9d4aac7fef4d00f3f1b9c2ee92712 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 26 May 2016 20:40:24 -0700 Subject: [PATCH] Correct variable names --- scripts/t-shirt-label-print.plx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/t-shirt-label-print.plx b/scripts/t-shirt-label-print.plx index 2072623..532b77f 100644 --- a/scripts/t-shirt-label-print.plx +++ b/scripts/t-shirt-label-print.plx @@ -70,7 +70,7 @@ sub sortFunction($$) { my $ledgerEntityId1 = $sp->getLedgerEntityId($_[1]); my $type0 = $sp->{ledgerData}{$ledgerEntityId0}{__TYPE__}; my $type1 = $sp->{ledgerData}{$ledgerEntityId1}{__TYPE__}; - if ( (defined $type0 and $type =~ /month/i) or (defined $type1 and $type =~ /month/i)) { + if ( (defined $type0 and $type0 =~ /month/i) or (defined $type1 and $type1 =~ /month/i)) { return ($_[0] <=> $_[1]); } else { return ($lastGaveDate0 cmp $lastGaveDate1);