diff options
| -rw-r--r-- | FS/FS/cust_svc.pm | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index b56dde7d7..42681a0e9 100644 --- a/FS/FS/cust_svc.pm +++ b/FS/FS/cust_svc.pm @@ -623,7 +623,8 @@ sub attribute_since_sqlradacct {      ) or die $dbh->errstr;      $sth->execute($username, $start, $end) or die $sth->errstr; -    $sum += $sth->fetchrow_arrayref->[0]; +    my $row = $sth->fetchrow_arrayref; +    $sum += $row->[0] if defined($row->[0]);      warn "$mes done SUMing sessions\n"        if $DEBUG; | 
