From b175798fabfe9b935be0d8219f9235a0d13ea65f Mon Sep 17 00:00:00 2001 From: terry Date: Wed, 3 Jun 2020 15:24:30 +0200 Subject: [PATCH] array_key_exists() on objects is deprecated --- model/ArrayList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/ArrayList.php b/model/ArrayList.php index 8b6b07bcb..cb4ec3c38 100644 --- a/model/ArrayList.php +++ b/model/ArrayList.php @@ -475,7 +475,7 @@ class ArrayList extends ViewableData implements SS_List, SS_Filterable, SS_Sorta return false; } - return array_key_exists($by, $firstRecord); + return is_array($firstRecord) ? array_key_exists($by, $firstRecord) : property_exists($by, $firstRecord); } /**