diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php index 759d00ecf..f9806fea2 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php @@ -399,8 +399,9 @@ public function getView($type, $params) { $eventTimePeriod = $paramsDecoded['filters']['event_time_period'] ?? NULL; - // Determine if we are in a state where field_options doesn't yet exist (pre-existing view) - $no_field_display_options_saved = !key_exists('field_options', $paramsDecoded) || !is_array($paramsDecoded['field_options']); + // Determine if we are in a state where field_options doesn't yet exist + // (pre-existing view) + $no_field_display_options_saved = !array_key_exists('field_options', $paramsDecoded) || !is_array($paramsDecoded['field_options']); $field_display_options = [ 'show_categories' => (int) !empty($paramsDecoded['field_options']['show_categories']),