Changeset 5861
- Timestamp:
- 08/10/2007 07:30:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r5860 r5861 311 311 return null; 312 312 313 // Extract the column values 314 for ( $i=0; $i < count($this->last_result); $i++ ) { 315 $new_array[$i] = $this->get_var(null, $x, $i); 313 if ( !$this->last_result ) 314 return null; 315 316 $i = 0; 317 foreach( $this->last_result as $row ) { 318 $arr = array_values( (array) $row ); 319 $new_array[$i] = $arr[0]; 320 $i++; 316 321 } 317 322 return $new_array;
Note: See TracChangeset
for help on using the changeset viewer.