Changeset 13671
- Timestamp:
- 03/11/2010 09:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r13578 r13671 444 444 */ 445 445 var $dbuser; 446 447 /** 448 * A textual description of the last query/get_row/get_var call 449 * 450 * @since unknown 451 * @access public 452 * @var string 453 */ 454 var $func_call; 446 455 447 456 /** … … 1388 1397 // Return an integer-keyed array of... 1389 1398 if ( $this->last_result ) { 1390 $i = 0;1391 1399 foreach( (array) $this->last_result as $row ) { 1392 1400 if ( $output == ARRAY_N ) { 1393 1401 // ...integer-keyed row arrays 1394 $new_array[ $i] = array_values( get_object_vars( $row ) );1402 $new_array[] = array_values( get_object_vars( $row ) ); 1395 1403 } else { 1396 1404 // ...column name-keyed row arrays 1397 $new_array[ $i] = get_object_vars( $row );1405 $new_array[] = get_object_vars( $row ); 1398 1406 } 1399 ++$i;1400 1407 } 1401 return $new_array;1402 1408 } 1403 } 1409 return $new_array; 1410 } 1411 return null; 1404 1412 } 1405 1413
Note: See TracChangeset
for help on using the changeset viewer.