Project

General

Profile

Actions

Bug #100853

closed

PHP Warning in GifBuilder.php

Added by Ralph Brugger over 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2023-05-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Stabilization Sprint

Description

PHP Warning: Undefined array key 3 in /data/www/sites/baden-wuerttemberg.de/shared/typo3_src/typo3_src-11.5.27/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php line 192

There are two places where $fileInfo[3] is accessed.
Should be better to set a default when $fileInfo[3] is not set.
if (! isset($fileInfo[3])){
    $fileInfo[3] = '';
}

Files

GifBuilder.diff (171 Bytes) GifBuilder.diff Ralph Brugger, 2023-05-10 11:59
Actions

Also available in: Atom PDF