summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2002-07-07 11:45:39 +0000
committerivan <ivan>2002-07-07 11:45:39 +0000
commit589e9de82292f85a9f09b3075375342db42a0614 (patch)
tree18042f068953ea510a6b29c79c14e6f10344306e
parentd83a273f3ac71431f5b007bb83fb55d7c83eae5c (diff)
wtf?
-rwxr-xr-xhttemplate/search/cust_bill.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/search/cust_bill.cgi b/httemplate/search/cust_bill.cgi
index d6492fe49..b49296b80 100755
--- a/httemplate/search/cust_bill.cgi
+++ b/httemplate/search/cust_bill.cgi
@@ -97,7 +97,8 @@ if ( $cgi->keywords ) {
}
#if ( scalar(@cust_bill) == 1 ) {
-if ( $total == 1 ) {
+if ( scalar(@cust_bill) == 1 && $total == 1) {
+#if ( $total == 1 ) {
my $invnum = $cust_bill[0]->invnum;
print $cgi->redirect(popurl(2). "view/cust_bill.cgi?$invnum"); #redirect
} elsif ( scalar(@cust_bill) == 0 ) {