Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Added missing null check
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jan 14, 2019
1 parent c4098ab commit 291ee37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filter/StringFilter.php
Expand Up @@ -23,7 +23,7 @@ class StringFilter extends Filter
*/
public function filter(ProxyQueryInterface $proxyQuery, $alias, $field, $data)
{
if (!$data || !\is_array($data) || !array_key_exists('value', $data)) {
if (!$data || !\is_array($data) || !array_key_exists('value', $data) || null === $data['value']) {
return;
}

Expand Down

0 comments on commit 291ee37

Please sign in to comment.