From bc997006234bf778b3ab6f086ad69f2776315cd4 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 8 Jan 2010 20:07:40 +0000 Subject: [PATCH] Use correct var name. see #11644 git-svn-id: https://develop.svn.wordpress.org/trunk@12668 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 8d0a8f29a6..8cede35815 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -666,7 +666,7 @@ class wpdb { // If there is an error then take note of it if( is_multisite() ) { - $msg = "WordPress database error: [$str]\n{$this->query}\n"; + $msg = "WordPress database error: [$str]\n{$this->last_query}\n"; if( defined( 'ERRORLOGFILE' ) ) error_log( $msg, 3, CONSTANT( 'ERRORLOGFILE' ) ); if( defined( 'DIEONDBERROR' ) )