diff --git a/plugins/restful/RestfulBase.php b/plugins/restful/RestfulBase.php index ec9f7fee..345752f6 100644 --- a/plugins/restful/RestfulBase.php +++ b/plugins/restful/RestfulBase.php @@ -1006,6 +1006,11 @@ protected function parseRequestForListFilter() { // filter[foo]=bar would be converted to filter[foo][value] = bar. $value = array('value' => $value); } + // It's possible someone is setting `operator` (or some other key) without a `value`. + // In these cases we should ignore the filter. + if (!isset($value['value'])) { + continue; + } if (!is_array($value['value'])) { $value['value'] = array($value['value']); }