Skip to content

Commit

Permalink
[TASK] Make sure TSFE is set before accessing
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbltr committed Dec 20, 2024
1 parent 8f85784 commit e354e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Upcoming version
[BUGFIX] Make it possible to have multiple "orderBy" parts in the search result query in TYPO3 13
[TASK] Add special treatment for the ke_search_premium "Custom Ranking" feature in the search result query "orderBy" part
[TASK] Make it possible to add "having" in the search result query
[TASK] Make sure TSFE is set before accessing

Version 6.1.2, 15 November 2024
[BUGFIX] Fix regression which required a startingpoint to be always set. https://github.com/tpwd/ke_search/issues/257
Expand Down
2 changes: 1 addition & 1 deletion Classes/Lib/SearchHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public static function searchLink(int $parameter, array $piVars = [], $resetFilt
{
// If no cObj is available we cannot render the link.
// This might be the case if the current request is headless (ke_search_premium feature).
if (!$GLOBALS['TSFE']->cObj) {
if (!isset($GLOBALS['TSFE']) || !isset($GLOBALS['TSFE']->cObj)) {
return '';
}

Expand Down

0 comments on commit e354e86

Please sign in to comment.