#90165Incorrect comparison in indexed_search SearchController do not set configured languageUid
Description
The indexed_search SearchController->initialize() function creates the wrong languageUid in search settings.
The condition
if ($searchData['languageUid'] ?? '' === 'current')
is true, if the $searchData[‘languageUid’] is set. The value of the $searchData[‘languageUid’] doesn’t matter.
This is the case, because the
'' === 'current'
comparission is evaluated first, than the
$searchData['languageUid'] ?? false
operator.
The correct condition would be
if (($searchData['languageUid'] ?? '') === 'current')