summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2002-10-17 14:46:04 +0000
committerivan <ivan>2002-10-17 14:46:04 +0000
commitee083facc9f4e18f27df07f829b224366483a56e (patch)
tree32042954c434e0448d3c02c3a868e1d91210fc2e /FS
parentdbcf3603c7929de3a0f2011d6516b996541e93fa (diff)
really fix sqlradacct for old Pg
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_svc.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm
index bed6a0ab3..6ce12cbe9 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -380,7 +380,7 @@ sub seconds_since_sqlradacct {
WHERE UserName = ?
AND $str2time AcctStartTime) >= ?
AND $str2time AcctStopTime ) < ?
- AND $str2time AcctStopTime ) =! 0
+ AND $str2time AcctStopTime ) > 0
AND AcctStopTime IS NOT NULL"
) or die $dbh->errstr;
$sth->execute($username, $start, $end) or die $sth->errstr;
@@ -407,7 +407,7 @@ sub seconds_since_sqlradacct {
AND $str2time AcctStartTime ) < ?
AND $str2time AcctStopTime ) >= ?
AND $str2time AcctStopTime ) < ?
- AND $str2time AcctStopTime ) != 0
+ AND $str2time AcctStopTime ) > 0
AND AcctStopTime IS NOT NULL"
) or die $dbh->errstr;
$sth->execute($start, $username, $start, $start, $end ) or die $sth->errstr;