Issue Bug Closed

#69948Warnings in DataHandler on undefined array indexes

Oliver Hader 09/18/15, 15:58 updated 10/19/17, 21:47

Description

Accessing array indexes that actually do not exist results in PHP warnings. This behavior is caught by using isset() or empty() but is not if using array_key_exists() on invalid array (e.g. NULL values).

Example warning:
@PHP Warning: array_key_exists() expects parameter 2 to be array, null given in typo3/master/typo3/sysext/core/Classes/DataHandling/DataHandler.php line 1640@

Reviews 1