Issue Bug Closed

#100006Invalid Array Key in GraphicalFunctions

Armin Vieweg 02/21/23, 16:27 updated 03/14/23, 11:47

Description

When using GIFbuilder with text and breakWidth options set, the following PHP Warning appears:

> PHP Warning: Undefined array key 5 in /var/www/html/web/public/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 1264

The issue appears in \TYPO3\CMS\Core\Imaging\GraphicalFunctions::getWordPairsForLineBreak when trying to access $wordsArray[$index + 1] which is not existing, in the last iteration:

clipboard-202302211723-tfcoh.png

Reviews 2