Skip to content

Commit

Permalink
[BUGFIX] Return value getPageItemChangedTime() must be of the type int
Browse files Browse the repository at this point in the history
Fixes the error:
Uncaught TYPO3 Exception: Return value of ApacheSolrForTypo3\Solr\IndexQueue\Queue::getPageItemChangedTime() must be of the type int, null returned

Fixes: #3806
Ports: #3812
  • Loading branch information
dkd-kaehm committed Oct 6, 2023
1 parent 542dd42 commit 1848907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/IndexQueue/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ protected function getPageItemChangedTime(array $page): int
{
if (!empty($page['content_from_pid'])) {
// canonical page, get the original page's last changed time
return $this->queueItemRepository->getPageItemChangedTimeByPageUid((int)$page['content_from_pid']);
return $this->queueItemRepository->getPageItemChangedTimeByPageUid((int)$page['content_from_pid']) ?? 0;
}
return $this->queueItemRepository->getPageItemChangedTimeByPageUid((int)$page['uid']) ?? 0;
}
Expand Down

0 comments on commit 1848907

Please sign in to comment.