Skip to content
Snippets Groups Projects
Commit 3f4058ed authored by Markus Klein's avatar Markus Klein Committed by Susanne Moog
Browse files

[BUGFIX] Use strict type checking for in_array() calls in JsonView

If the JsonView traverses array with numeric indexes and an exclude
configuration is set, the first array element is now handled correctly.

The comparison of array index 0 with a string within in_array() yields
TRUE, hence the first element was skipped.

Resolves: #89510
Releases: master, 9.5, 8.7
Change-Id: I38561f7fc05dcefaf23f9178d5ba987591ffaf45
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62111


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarFlorian Weiss <typo3org@leblanc.at>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarFlorian Weiss <typo3org@leblanc.at>
Tested-by: default avatarSusanne Moog <look@susi.dev>
parent ddd4310e
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment