aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/db/mysql.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php
index b5c8e0e33d..ef2e52aa5b 100644
--- a/phpBB/db/mysql.php
+++ b/phpBB/db/mysql.php
@@ -216,12 +216,7 @@ class sql_db
function sql_affectedrows()
{
- if ( !$query_id )
- {
- $query_id = $this->query_result;
- }
-
- return ( $query_id ) ? @mysql_affected_rows($query_id) : false;
+ return ( $this->db_connect_id ) ? @mysql_affected_rows($this->db_connect_id) : false;
}
function sql_fetchrow($query_id = 0)