From 6812929e377b4a08adf571732f7b533f153eff04 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 6 Aug 2002 15:21:20 +0000 Subject: [PATCH] This bug courteousy of "The Idiot Song" (c) P. Owen : All Rights Reserved git-svn-id: file:///svn/phpbb/trunk@2825 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/db/mysql.php | 7 +------ 1 file changed, 1 insertion(+), 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)