Issue Bug Closed

#44416Hook "modifyDBRow" in "ContentContentObject" does not work!

Lars no-lastname-given 01/09/13, 21:29 updated 10/23/17, 22:16

Description

The hook “modifyDBRow” in class “ContentContentObject” does not work:

Line 104-109 from class “ContentContentObject”:

if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content_content.php']['modifyDBRow'])) { foreach ($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content_content.php']['modifyDBRow'] as $_classRef) { $_procObj = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($_classRef); $_procObj->modifyDBRow($row, $conf['table']); } }

TYPO3_CONF_VARS is accessed via “$this”, but TYPO3_CONF_VARS is never a member of current class instance!

It woild have to be accessed via “$GLOBALS[‘TYPO3_CONF_VARS’]”

6.0 and 4.7 are affected by this bug, i think earlier versions are affected too!

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.