summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2003-12-20 03:47:09 +0000
committerivan <ivan>2003-12-20 03:47:09 +0000
commit7c67ed5982f05a562c30e45938a9fa164cbeb7cb (patch)
treea456d0c2b3a53a2569203bd55efe1416ac44f071 /httemplate
parent50a3c53a35c705795cea89a2af17c5197351fce4 (diff)
fix inflated advertising source numbers
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/browse/part_referral.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/browse/part_referral.cgi b/httemplate/browse/part_referral.cgi
index 69bb95aa5..3f59abcf5 100755
--- a/httemplate/browse/part_referral.cgi
+++ b/httemplate/browse/part_referral.cgi
@@ -23,7 +23,8 @@ Where a customer heard about your service. Tracked for informational purposes.
;
my $sth = dbh->prepare("SELECT COUNT(*) FROM h_cust_main
- WHERE refnum = ?
+ WHERE history_action = 'insert'
+ AND refnum = ?
AND history_date > ? ")
or die dbh->errstr;
%>