Bug #22468 ยป 14129.diff
typo3/sysext/cms/tslib/class.tslib_content.php (working copy) | ||
---|---|---|
}
|
||
$GLOBALS['TYPO3_DB']->sql_free_result($res);
|
||
}
|
||
}
|
||
// If first run, check if the ID should be returned:
|
||
if (!$recursionLevel) {
|
||
if ($addId) {
|
||
if ($begin > 0) {
|
||
$theList.= 0;
|
||
} else {
|
||
$theList.= $addId;
|
||
// If first run, check if the ID should be returned:
|
||
if (!$recursionLevel) {
|
||
if ($addId) {
|
||
if ($begin > 0) {
|
||
$theList.= 0;
|
||
} else {
|
||
$theList.= $addId;
|
||
}
|
||
}
|
||
$GLOBALS['TYPO3_DB']->exec_INSERTquery(
|
||
'cache_treelist',
|
||
array(
|
||
'md5hash' => $requestHash,
|
||
'pid' => $id,
|
||
'treelist' => $theList,
|
||
'tstamp' => $GLOBALS['EXEC_TIME'],
|
||
)
|
||
);
|
||
}
|
||
$GLOBALS['TYPO3_DB']->exec_INSERTquery(
|
||
'cache_treelist',
|
||
array(
|
||
'md5hash' => $requestHash,
|
||
'pid' => $id,
|
||
'treelist' => $theList,
|
||
'tstamp' => $GLOBALS['EXEC_TIME'],
|
||
)
|
||
);
|
||
}
|
||
// Return list:
|
||
return $theList;
|