Changeset 33476
- Timestamp:
- 07/29/2015 06:21:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/src/wp-includes/wp-db.php
r33311 r33476 2082 2082 $this->func_call = "\$db->get_var(\"$query\", $x, $y)"; 2083 2083 2084 if ( $this->check_ safe_collation( $query ) ) {2084 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2085 2085 $this->check_current_query = false; 2086 2086 } … … 2115 2115 $this->func_call = "\$db->get_row(\"$query\",$output,$y)"; 2116 2116 2117 if ( $this->check_ safe_collation( $query ) ) {2117 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2118 2118 $this->check_current_query = false; 2119 2119 } … … 2156 2156 */ 2157 2157 public function get_col( $query = null , $x = 0 ) { 2158 if ( $this->check_ safe_collation( $query ) ) {2158 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2159 2159 $this->check_current_query = false; 2160 2160 } … … 2188 2188 $this->func_call = "\$db->get_results(\"$query\", $output)"; 2189 2189 2190 if ( $this->check_ safe_collation( $query ) ) {2190 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2191 2191 $this->check_current_query = false; 2192 2192 } … … 2714 2714 2715 2715 foreach ( array_keys( $data ) as $column ) { 2716 $data[ $column ]['value'] = $row["x_$column"]; 2716 if ( isset( $row["x_$column"] ) ) { 2717 $data[ $column ]['value'] = $row["x_$column"]; 2718 } 2717 2719 } 2718 2720 }
Note: See TracChangeset
for help on using the changeset viewer.