| @@ 4134-4148 (lines=15) @@ | ||
| 4131 | } |
|
| 4132 | $cleaned_value = $this->_construct_between_value($value, $field_obj); |
|
| 4133 | return $operator . SP . $cleaned_value; |
|
| 4134 | } elseif (in_array($operator, $this->valid_null_style_operators())) { |
|
| 4135 | if ($value !== null) { |
|
| 4136 | throw new EE_Error( |
|
| 4137 | sprintf( |
|
| 4138 | __( |
|
| 4139 | "You attempted to give a value (%s) while using a NULL-style operator (%s). That isn't valid", |
|
| 4140 | "event_espresso" |
|
| 4141 | ), |
|
| 4142 | $value, |
|
| 4143 | $operator |
|
| 4144 | ) |
|
| 4145 | ); |
|
| 4146 | } |
|
| 4147 | return $operator; |
|
| 4148 | } elseif (in_array($operator, $this->valid_like_style_operators()) && ! is_array($value)) { |
|
| 4149 | //if the operator is 'LIKE', we want to allow percent signs (%) and not |
|
| 4150 | //remove other junk. So just treat it as a string. |
|
| 4151 | return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
|
| @@ 855-865 (lines=11) @@ | ||
| 852 | // get the file |
|
| 853 | require_once($path); |
|
| 854 | // if the class isn't already declared somewhere |
|
| 855 | if (class_exists($class_name, false) === false) { |
|
| 856 | // so sorry, not a class |
|
| 857 | throw new EE_Error( |
|
| 858 | sprintf( |
|
| 859 | __('The %s file %s does not appear to contain the %s Class.', 'event_espresso'), |
|
| 860 | $type, |
|
| 861 | $path, |
|
| 862 | $class_name |
|
| 863 | ) |
|
| 864 | ); |
|
| 865 | } |
|
| 866 | } catch (EE_Error $e) { |
|
| 867 | $e->get_error(); |
|
| 868 | return false; |
|