Bug #32467
closedtcemain: iterate over columns only if they are set
100%
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
)
Files
Updated by Oliver Hader almost 13 years ago
- Status changed from New to Needs Feedback
- PHP Version set to 5.3
- Complexity set to easy
You can change that directly by your contribution. Get more information here: http://typo3.org/development/bug-fixing/resolving-bugs/
Besides that, can you please tell me why your table does not have columns? Is that intended or is it a regular table like 'tt_content' (the we might consider it as an additional bug). Thanks for your feedback...
Updated by Christian Weiske almost 13 years ago
The table "tx_rsaauth_keys" is part of a standard TYPO3 installation - it's not a custom one.
Updated by Gerrit Code Review almost 13 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9061
Updated by Gerrit Code Review almost 13 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9061
Updated by Mario Rimann almost 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cd4e0c1f7176f46465473ef134c42b6c26724e23.
Updated by Gerrit Code Review almost 13 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/9075
Updated by Gerrit Code Review almost 13 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/9076
Updated by Mario Rimann over 12 years ago
- Status changed from Under Review to Resolved
Applied in changeset 46d11b5eef7cbc72fa148d86b12f2f011a848151.