Issue Bug Closed

#43068Method modifyDBRow (FrontendContentAdapterService)

Tomasz Grzemski 11/18/12, 12:34 updated 10/23/17, 22:14

Description

The method doesn’t check if a row is an array, so if $row is empty this method always creates an array and adds $row[‘_MIGRATED’] element.

When using TypoScipt to get some data from TEXT object there is a check if $fieldArray is an array. So this condition will be always false:

ContentObjectRender.php
public function getData($string, $fieldArray) {
        global $TYPO3_CONF_VARS;
        if (!is_array($fieldArray)) {
            $fieldArray = $GLOBALS['TSFE']->page;
}

We should check in modifyDBRow method if a data argument is an array.

Reviews 0

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