Actions
Bug #30623
closedcall cObj->includeLibs without check if $conf is an array
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-10-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In some situations $conf is not an array. e.g. if an extension has a wrong typoscript configuration.
in this case there are hundreds of error_log entries like this:
Core: Error handler (FE): PHP Catchable Fatal Error: Argument 1 passed to tslib_cObj::includeLibs() must be an array, string given, called in /.../htdocs/typo3-src/typo3_src-4.5.6/typo3/sysext/cms/tslib/content/class.tslib_content_user.php on line 50 and defined in /.../htdocs/typo3-src/typo3_src-4.5.6/typo3/sysext/cms/tslib/class.tslib_content.php line 6783
On line 50 in cms/tslib/content/class.tslib_content_user.php the function cObj->includeLibs is called without a check if the given argument ($conf) is an array.
I have fixed this, the patch file is attached.
Files
Actions