From ea9e869ea856f21651ae796da0fef2ec29574e42 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@13245 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 3ac57009fb..68b3a9657a 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; } }