Skip to content

Commit

Permalink
[BUGFIX] Avoid undefined array key warning for "sphinxLimit"
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbltr committed Nov 24, 2023
1 parent b5d58ad commit 6e21ca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ChangeLog

Upcoming version
[TASK] Properly type-hint IndexerBase constructor, thanks to hotbytes-dev, https://github.com/tpwd/ke_search/pull/202
[BUGFIX] Avoid undefined array key warning for "sphinxLimit"

Version 5.1.3, 10 November 2023
[BUGFIX] Replace all occurences of additional word characters, not only the first one. Thanks to K. Quiatkowski. https://github.com/tpwd/ke_search/issues/19
Expand Down
6 changes: 3 additions & 3 deletions Classes/Lib/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ public function getSearchResultBySphinx(bool $limitToOnePage = true): array
$this->keSearchPremium->setLimit(
$limit[0],
$limit[1],
(int)($this->pObj->extConfPremium['sphinxLimit'])
(int)($this->pObj->extConfPremium['sphinxLimit'] ?? 0)
);
} else {
$this->keSearchPremium->setLimit(
0,
(int)($this->pObj->extConfPremium['sphinxLimit']),
(int)($this->pObj->extConfPremium['sphinxLimit'])
(int)($this->pObj->extConfPremium['sphinxLimit'] ?? 0),
(int)($this->pObj->extConfPremium['sphinxLimit'] ?? 0)
);
}

Expand Down

0 comments on commit 6e21ca3

Please sign in to comment.