From f3bf4ec676e38a7066714d77d09f67771d7acfa7 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 20 Feb 2010 10:50:57 +0000 Subject: [PATCH] Fix wpdb::tables() prefix handling. Ensures PHP4 compat. See #12083 git-svn-id: http://svn.automattic.com/wordpress/trunk@13245 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 3ac57009f..68b3a9657 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -601,8 +601,8 @@ class wpdb { if ( $prefix ) { $prefix = $this->get_blog_prefix( $blog_id ); - foreach ( $tables as &$table ) { - $table = $prefix . $table; + foreach ( $tables as $k => $table ) { + $tables[$k] = $prefix . $table; } }