diff --git a/Classes/ViewHelpers/PageBrowserRangeViewHelper.php b/Classes/ViewHelpers/PageBrowserRangeViewHelper.php index ec13431db7..2bb8e4d3da 100644 --- a/Classes/ViewHelpers/PageBrowserRangeViewHelper.php +++ b/Classes/ViewHelpers/PageBrowserRangeViewHelper.php @@ -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);