Fixed bug #16574: PHP notices from XCLASS inclusions
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_scbase.php
index 9fa4c36..9bd2a63 100644 (file)
@@ -87,8 +87,8 @@
  *              }
  *
  *                      // CHECKING IF THERE ARE AN EXTENSION CLASS CONFIGURED FOR THIS CLASS:
- *              if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/prototype/index.php'])        {
- *                      include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/prototype/index.php']);
+ *              if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/prototype/index.php'])) {
+ *                      include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/prototype/index.php']);
  *              }
  *
  *                // MAKE INSTANCE OF THE SCRIPT CLASS AND CALL init()
@@ -387,4 +387,4 @@ class t3lib_SCbase {
        }
 }
 
-?>
\ No newline at end of file
+?>