From 3dd1539456b212d2e859c3b9d381378e355f6321 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 2 Sep 2010 14:25:57 +0300 Subject: fix delete --- MainDb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MainDb.php') 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 -- cgit v1.2.3