Project

General

Profile

Actions

Bug #99846

closed

PHP Warning in FlexFormService.php

Added by Ralph Brugger almost 2 years ago. Updated over 1 year ago.

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

100%

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

Description

We've got a warning in

typo3/sysext/core/Classes/Service/FlexFormService.php

public function convertFlexFormContentToArray($flexFormContent, $languagePointer = 'lDEF', $valuePointer = 'vDEF')

foreach (array_values($flexFormArray) as $languages) {
    if (!is_array($languages[$languagePointer])) {
        continue;
    }

could / should be:

foreach (array_values($flexFormArray) as $languages) {
    if (isset($languages[$languagePointer])){
      if (!is_array($languages[$languagePointer])) {
          continue;
      }

Actions

Also available in: Atom PDF