reduced method includeLibs to only one return statement
authorIngo Renner <ingo.renner@typo3.org>
Wed, 12 Nov 2008 21:50:14 +0000 (21:50 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Wed, 12 Nov 2008 21:50:14 +0000 (21:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4465 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index a9f915e..17e4041 100755 (executable)
@@ -6386,12 +6386,15 @@ class tslib_cObj {
         * @return      boolean         Whether a configuration for including libs was found and processed
         */
        protected function includeLibs(array $config) {
+               $librariesIncluded = false;
+
                if (isset($config['includeLibs']) && $config['includeLibs']) {
                        $libraries = t3lib_div::trimExplode(',', $config['includeLibs'], true);
                        $GLOBALS['TSFE']->includeLibraries($libraries);
-                       return true;
+                       $librariesIncluded = true;
                }
-               return false;
+
+               return $librariesIncluded;
        }
 
        /**