Skip to content
Snippets Groups Projects
Commit ae685ef9 authored by Daniel Siepmann's avatar Daniel Siepmann Committed by Benjamin Franzke
Browse files

[BUGFIX] Avoid PHP warning in ArrayUtility::getValueByPath()

Children of $array in ArrayUtility::getValueByPath() may contain other
datatypes than array, therefore check the datatype by is_array()
before calling array_key_exists() in order to avoid a PHP warning.

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


Reviewed-by: default avatarStephan Großberndt <stephan.grossberndt@typo3.org>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent 86a2436a
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