Changeset 33455
- Timestamp:
- 07/28/2015 06:31:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r33310 r33455 2113 2113 $this->func_call = "\$db->get_var(\"$query\", $x, $y)"; 2114 2114 2115 if ( $this->check_ safe_collation( $query ) ) {2115 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2116 2116 $this->check_current_query = false; 2117 2117 } … … 2148 2148 $this->func_call = "\$db->get_row(\"$query\",$output,$y)"; 2149 2149 2150 if ( $this->check_ safe_collation( $query ) ) {2150 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2151 2151 $this->check_current_query = false; 2152 2152 } … … 2189 2189 */ 2190 2190 public function get_col( $query = null , $x = 0 ) { 2191 if ( $this->check_ safe_collation( $query ) ) {2191 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2192 2192 $this->check_current_query = false; 2193 2193 } … … 2223 2223 $this->func_call = "\$db->get_results(\"$query\", $output)"; 2224 2224 2225 if ( $this->check_ safe_collation( $query ) ) {2225 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2226 2226 $this->check_current_query = false; 2227 2227 } … … 2749 2749 2750 2750 foreach ( array_keys( $data ) as $column ) { 2751 $data[ $column ]['value'] = $row["x_$column"]; 2751 if ( isset( $row["x_$column"] ) ) { 2752 $data[ $column ]['value'] = $row["x_$column"]; 2753 } 2752 2754 } 2753 2755 }
Note: See TracChangeset
for help on using the changeset viewer.