Review main Abandoned

80322[BUGFIX]: Add condition to check for json_decode() return value

Max Frerichs CR 0 V 0 Easy +1 −1 updated 08/08/23, 11:31

Commit message

In some (I think rare) cases it could happen, that json_decode() returns null and foreach() throws a PHP warning, causing TYPO3 to throw an exception.
To fix this, I've added a simple condition to check for the return value of json_decode() and - if that happens - assign just an empty array to $trustedProperties.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1