aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MainDb.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/MainDb.php b/MainDb.php
index 6a18f9e..19ccfa9 100644
--- a/MainDb.php
+++ b/MainDb.php
@@ -105,7 +105,7 @@ class MainDb
// DELETE statements should report number of rows
if (preg_match('/^DELETE/i', $sql)) {
- return $result->rowCount();
+ return $stmt->rowCount();
}
// SELECT statements need the query results