Changeset 33480
- Timestamp:
- 07/29/2015 06:48:09 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1/src/wp-includes/wp-db.php
r33479 r33480 2063 2063 $this->func_call = "\$db->get_var(\"$query\", $x, $y)"; 2064 2064 2065 if ( $this->check_ safe_collation( $query ) ) {2065 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2066 2066 $this->check_current_query = false; 2067 2067 } … … 2096 2096 $this->func_call = "\$db->get_row(\"$query\",$output,$y)"; 2097 2097 2098 if ( $this->check_ safe_collation( $query ) ) {2098 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2099 2099 $this->check_current_query = false; 2100 2100 } … … 2137 2137 */ 2138 2138 public function get_col( $query = null , $x = 0 ) { 2139 if ( $this->check_ safe_collation( $query ) ) {2139 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2140 2140 $this->check_current_query = false; 2141 2141 } … … 2169 2169 $this->func_call = "\$db->get_results(\"$query\", $output)"; 2170 2170 2171 if ( $this->check_ safe_collation( $query ) ) {2171 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2172 2172 $this->check_current_query = false; 2173 2173 } … … 2690 2690 2691 2691 foreach ( array_keys( $data ) as $column ) { 2692 $data[ $column ]['value'] = $row["x_$column"]; 2692 if ( isset( $row["x_$column"] ) ) { 2693 $data[ $column ]['value'] = $row["x_$column"]; 2694 } 2693 2695 } 2694 2696 }
Note: See TracChangeset
for help on using the changeset viewer.