Project

General

Profile

Actions

Bug #32467

closed

tcemain: iterate over columns only if they are set

Added by Christian Weiske almost 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2011-12-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

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

typo3-tcemain-columns.diff (857 Bytes) typo3-tcemain-columns.diff Christian Weiske, 2011-12-12 10:54
Actions

Also available in: Atom PDF