From f01644b6c6046021db2860243b49928818fdad13 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 6 Apr 2007 17:22:53 +0000 Subject: [PATCH] Pass link indentifier to mymysql_affected_rows(). Props Doug Kaye. git-svn-id: https://develop.svn.wordpress.org/trunk@5195 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 1a043c95be..55a71ce3b8 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -192,7 +192,7 @@ class wpdb { } if ( preg_match("/^\\s*(insert|delete|update|replace) /i",$query) ) { - $this->rows_affected = mysql_affected_rows(); + $this->rows_affected = mysql_affected_rows($this->dbh); // Take note of the insert_id if ( preg_match("/^\\s*(insert|replace) /i",$query) ) { $this->insert_id = mysql_insert_id($this->dbh);