Project

General

Profile

Actions

Bug #69948

closed

Warnings in DataHandler on undefined array indexes

Added by Oliver Hader over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
DataHandler aka TCEmain
Target version:
Start date:
2015-09-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #68606: copyRecords removes NULL values from original dataClosedJo Hasenau2015-07-29

Actions
Actions #1

Updated by Oliver Hader over 8 years ago

Introduced in #68606

Actions #2

Updated by Oliver Hader over 8 years ago

  • Description updated (diff)

Introduces in #68606

Actions #3

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43423

Actions #4

Updated by Oliver Hader over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF