Issue Bug Closed

#30623call cObj->includeLibs without check if $conf is an array

Frank Nägler 10/07/11, 12:59 updated 10/02/18, 12:19

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.

Reviews 1