diff --git a/SimpleCrud/RowCollection.php b/SimpleCrud/RowCollection.php index 7e92ae7..7dd2afe 100644 --- a/SimpleCrud/RowCollection.php +++ b/SimpleCrud/RowCollection.php @@ -289,7 +289,7 @@ public function filter ($name, $value, $first = false) { $rows = []; foreach ($this->rows as $row) { - if ($row->$name === $value) { + if (($row->$name === $value) || (is_array($value) && in_array($row->$name, $value, true))) { if ($first === true) { return $row; }