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
This commit is contained in:
Andrew Nacin 2010-02-20 10:50:57 +00:00
parent d824d6bbd4
commit ea9e869ea8
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;
}
}