Commit ed68be10 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Only set Counter = 0 when $row is returned

This could cause NULL's being added to the table

- Thanks Marco Dalla Stella!
parent 46c3ce67
......@@ -687,7 +687,7 @@ sub getTrackingInfo
DBFreeRes($sth);
# Make sure Counter isn't 0
if (!defined($row->{'Counter'})) {
if (defined($row) && !defined($row->{'Counter'})) {
$row->{'Counter'} = 0;
}
......
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