Ticket #45299: 45299.diff
File 45299.diff, 593 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/wp-db.php
2544 2544 2545 2545 $new_array = array(); 2546 2546 // Extract the column values 2547 for ( $i = 0, $j = count( $this->last_result ); $i < $j; $i++ ) { 2548 $new_array[ $i ] = $this->get_var( null, $x, $i ); 2547 if ( $this->last_result ) { 2548 for ( $i = 0, $j = count( $this->last_result ); $i < $j; $i++ ) { 2549 $new_array[ $i ] = $this->get_var( null, $x, $i ); 2550 } 2549 2551 } 2550 2552 return $new_array; 2551 2553 }