From bc26c910efdf8dccbb0c8565bd73cf7a1c0cccd1 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 21 Apr 2016 11:37:46 +0000 Subject: [PATCH] Fixed issue with new bills not grabbing data --- poll-billing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poll-billing.php b/poll-billing.php index a4d16c553a..0125fbbf4d 100755 --- a/poll-billing.php +++ b/poll-billing.php @@ -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 {