Issue Bug Closed

#32467tcemain: iterate over columns only if they are set

Christian Weiske 12/12/11, 10:54 updated 10/02/18, 12:19

Description

When unit-testing own extensions that use typo3 backend functionality, I get E_WARNINGs about typo3 iterating over an undefined “columns” variable.

The attached patch checks if the table’s “columns” value is set, thus preventing the warning.

Invalid argument supplied for foreach()

/home/cweiske/foo/t3lib/class.t3lib_tcemain.php:5346
/home/cweiske/foo/t3lib/class.t3lib_tcemain.php:222

(table is tx_rsaauth_keys)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.