From 199b81c0e68e0426cffb7fda553b6654799cb0cc Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 15 Sep 2021 18:04:24 -0400 Subject: [PATCH] SearchKit - Fix search display pager when using default pager settings --- ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php b/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php index ce4a06d7a0..3ba06edbd3 100644 --- a/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php +++ b/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php @@ -45,7 +45,7 @@ class Run extends AbstractRunAction { break; default: - if (!empty($settings['pager']) && preg_match('/^page:\d+$/', $this->return)) { + if (($settings['pager'] ?? FALSE) !== FALSE && preg_match('/^page:\d+$/', $this->return)) { $page = explode(':', $this->return)[1]; } $limit = !empty($settings['pager']['expose_limit']) && $this->limit ? $this->limit : NULL; -- 2.25.1