wpdb: Don't pass a second argument to mysqli_fetch_field().

props pento.
fixes #27693.

Built from https://develop.svn.wordpress.org/trunk@28002


git-svn-id: http://core.svn.wordpress.org/trunk@27832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-04-07 20:22:28 +00:00
parent d568e9029d
commit 10b8c92b1e
1 changed files with 1 additions and 1 deletions

View File

@ -1962,7 +1962,7 @@ class wpdb {
if ( $this->use_mysqli ) { if ( $this->use_mysqli ) {
for ( $i = 0; $i < @mysqli_num_fields( $this->result ); $i++ ) { for ( $i = 0; $i < @mysqli_num_fields( $this->result ); $i++ ) {
$this->col_info[ $i ] = @mysqli_fetch_field( $this->result, $i ); $this->col_info[ $i ] = @mysqli_fetch_field( $this->result );
} }
} else { } else {
for ( $i = 0; $i < @mysql_num_fields( $this->result ); $i++ ) { for ( $i = 0; $i < @mysql_num_fields( $this->result ); $i++ ) {