Issue Bug Closed

#97329Missing isset in indexed_search SearchController.php

Preben Rather Sørensen 04/07/22, 12:55 updated 10/04/22, 14:05

Description

In typo3/sysext/indexed_search/Classes/Controller/SearchController.php line 492 and 538 there is a missing isset

if ($GLOBALS[‘TSFE’]->config[‘config’][‘fileTarget’])

Should be

if (isset($GLOBALS[‘TSFE’]->config[‘config’][‘fileTarget’]))

The missing isset cause an error in frontend under certain circumstances:

PHP Warning: Undefined array key "fileTarget" in /var/www/html/private/typo3/sysext/indexed_search/Classes/Controller/SearchController.php line 492

Reviews 2