summaryrefslogtreecommitdiff
path: root/lib/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db.h')
-rw-r--r--lib/db.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/db.h b/lib/db.h
index 02c9c06..d600322 100644
--- a/lib/db.h
+++ b/lib/db.h
@@ -615,7 +615,8 @@ class cDbRow : public cDbService
int count = 0;
for (int f = 0; f < tableDef->fieldCount(); f++)
- count += dbValues[f].getChanges();
+ if (dbValues[f].getChanges())
+ count++;
return count;
}