@@ 3442-3452 (lines=11) @@ | ||
3439 | } |
|
3440 | //now, just verify they didn't pass anything wack |
|
3441 | foreach ($query_params as $query_key => $query_value) { |
|
3442 | if (! in_array($query_key, $this->_allowed_query_params, true)) { |
|
3443 | throw new EE_Error( |
|
3444 | sprintf( |
|
3445 | __( |
|
3446 | "You passed %s as a query parameter to %s, which is illegal! The allowed query parameters are %s", |
|
3447 | 'event_espresso' |
|
3448 | ), |
|
3449 | $query_key, |
|
3450 | get_class($this), |
|
3451 | // print_r( $this->_allowed_query_params, TRUE ) |
|
3452 | implode(',', $this->_allowed_query_params) |
|
3453 | ) |
|
3454 | ); |
|
3455 | } |
|
@@ 4304-4306 (lines=3) @@ | ||
4301 | return $wpdb->prepare($field_obj->get_wpdb_data_type(), |
|
4302 | $this->_prepare_value_for_use_in_db($value, $field_obj)); |
|
4303 | } else {//$field_obj should really just be a data type |
|
4304 | if (! in_array($field_obj, $this->_valid_wpdb_data_types)) { |
|
4305 | throw new EE_Error(sprintf(__("%s is not a valid wpdb datatype. Valid ones are %s", "event_espresso"), |
|
4306 | $field_obj, implode(",", $this->_valid_wpdb_data_types))); |
|
4307 | } |
|
4308 | return $wpdb->prepare($field_obj, $value); |
|
4309 | } |