Commit 0b3f2149 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Ensure that Counter cannot be NULL

Change-Id: I5b06bf9efc2fe6c4fe811da4686c834fa1375f8e
parent c4b293c9
......@@ -686,6 +686,11 @@ sub getTrackingInfo
my $row = hashifyLCtoMC($sth->fetchrow_hashref(),qw( QuotasLimitsID TrackKey Counter LastUpdate ));
DBFreeRes($sth);
# Make sure Counter isn't 0
if (!defined($row->{'Counter'})) {
$row->{'Counter'} = 0;
}
return $row;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment