Skip to content

Commit

Permalink
Prevent PHP warning in PageBrowserRangeViewHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
sfroemkenjw authored and dkd-kaehm committed Jun 1, 2023
1 parent d9e4f9d commit d30ac00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/PageBrowserRangeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function renderStatic(
$numberOfResultsOnPage = $resultSet->getSearchResults()->getCount();
$numberOfAllResults = $resultSet->getAllResultCount();

$resultsFrom = $search->getResponseBody()->start + 1;
$resultsFrom = ($search->getResponseBody() ? $search->getResponseBody()->start : 0) + 1;
$resultsTo = $resultsFrom + $numberOfResultsOnPage - 1;
$variableProvider->add($from, $resultsFrom);
$variableProvider->add($to, $resultsTo);
Expand Down

0 comments on commit d30ac00

Please sign in to comment.