array_key_exists() on objects is deprecated
Ref: https://wiki.php.net/rfc/deprecations_php_7_4#array_key_exists_with_objects
This commit is contained in:
parent
8219491705
commit
ec6a353543
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue