diff --git a/src/ORM/ArrayList.php b/src/ORM/ArrayList.php index cd60f6eb7..2dfa61717 100644 --- a/src/ORM/ArrayList.php +++ b/src/ORM/ArrayList.php @@ -588,7 +588,7 @@ class ArrayList extends ViewableData implements SS_List, Filterable, Sortable, L $firstRecord = $this->first(); - return array_key_exists($by, $firstRecord); + return is_array($firstRecord) ? array_key_exists($by, $firstRecord) : property_exists($by, $firstRecord); } /**