Review TYPO3_7-6 Merged

48315[BUGFIX] Check if `$rows` is an array before iteration

Markus Klein CR +2 V +2 Easy +12 −9 updated 05/27/16, 10:31

Commit message

In case `$rows` in the method `DataHandler::copySpecificPage()` is null,
the foreach loop will throw an error.
`$rows` may become null if an extension brings TCA but the table does not
have `uid` field, for example.

It's now checked whether the result being iterated is an array, otherwise
an error is logged.

Review

  • Code review CR +2

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

  • Verified V +2

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

Issues 1

Files 1