Fixed bug #9802: Frontend plugins show PHP error if there is no TypoScript configuration
authorOliver Hader <oliver.hader@typo3.org>
Sat, 22 Nov 2008 10:23:05 +0000 (10:23 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 22 Nov 2008 10:23:05 +0000 (10:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4475 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 1d0eb89..8499334 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-22  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #9802: Frontend plugins show PHP error if there is no TypoScript configuration
+
 2008-11-13  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Follow up for issue #9771: htmlArea RTE spellchecker not working in TYPO3 4.3-dev
index 17e4041..2341f8c 100755 (executable)
@@ -6416,10 +6416,10 @@ class tslib_cObj {
         * @link        http://bugs.typo3.org/view.php?id=9654
         * @TODO        This method was introduced in TYPO3 4.3 and can be removed if the autoload was integrated
         */
-       protected function isClassAvailable($className, array $config) {
+       protected function isClassAvailable($className, array $config = NULL) {
                if (class_exists($className)) {
                        return true;
-               } else {
+               } elseif ($config) {
                        $pluginConfiguration =& $GLOBALS['TSFE']->tmpl->setup['plugin.'][$className . '.'];
                        if (isset($pluginConfiguration['includeLibs']) && $pluginConfiguration['includeLibs']) {
                                $config['includeLibs'] = $pluginConfiguration['includeLibs'];