Fixed issue with new bills not grabbing data

This commit is contained in:
laf
2016-04-21 11:37:46 +00:00
parent 6694accb32
commit bc26c910ef

View File

@@ -125,7 +125,7 @@ function CollectData($bill_id) {
$out_delta = $prev_out_delta;
}
if ($period < '0') {
if (!empty($period) && $period < '0') {
logfile("BILLING: negative period! id:$bill_id period:$period delta:$delta in_delta:$in_delta out_delta:$out_delta");
}
else {