Changeset 8572 for trunk/wp-includes/wp-db.php
- Timestamp:
- 08/06/2008 08:31:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r8311 r8572 379 379 $this->prefix = $prefix; 380 380 381 foreach ( $this->tables as $table )381 foreach ( (array) $this->tables as $table ) 382 382 $this->$table = $this->prefix . $table; 383 383 … … 678 678 $data = add_magic_quotes($data); 679 679 $bits = $wheres = array(); 680 foreach ( array_keys($data) as $k )680 foreach ( (array) array_keys($data) as $k ) 681 681 $bits[] = "`$k` = '$data[$k]'"; 682 682 … … 806 806 if ( $this->last_result ) { 807 807 $i = 0; 808 foreach( $this->last_result as $row ) {808 foreach( (array) $this->last_result as $row ) { 809 809 if ( $output == ARRAY_N ) { 810 810 // ...integer-keyed row arrays … … 834 834 if ( $col_offset == -1 ) { 835 835 $i = 0; 836 foreach( $this->col_info as $col ) {836 foreach( (array) $this->col_info as $col ) { 837 837 $new_array[$i] = $col->{$info_type}; 838 838 $i++; … … 942 942 $caller = ''; 943 943 944 foreach ( $bt as $trace ) {944 foreach ( (array) $bt as $trace ) { 945 945 if ( @$trace['class'] == __CLASS__ ) 946 946 continue;
Note: See TracChangeset
for help on using the changeset viewer.