[BUGFIX] Misleading error with empty USER_INT
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / content / class.tslib_content_user.php
index 41c0a24..d73ffed 100644 (file)
@@ -42,6 +42,11 @@ class tslib_content_User extends tslib_content_Abstract {
         * @return      string          Output
         */
        public function render($conf = array()) {
+               if (!is_array($conf) || empty($conf)) {
+                       $GLOBALS['TT']->setTSlogMessage('USER_INT without configuration.', 2);
+                       return '';
+               }
+
                $content = '';
                if ($this->cObj->getUserObjectType() === FALSE) {
                                // Come here only if we are not called from $TSFE->INTincScript_process()!
@@ -66,4 +71,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['tslib/content/class.tslib_content_user.php']);
 }
 
-?>
\ No newline at end of file
+?>