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
This commit is contained in:
nacin 2010-02-20 10:50:57 +00:00
parent f58329a718
commit f3bf4ec676
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}