Project

General

Profile

Bug #30229 » 30229-4_5_v2.diff

Michael Voehringer, 2014-08-20 12:03

View differences:

t3lib/class.t3lib_tcemain.php
if ($table != 'pages') {
$mres = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', $table, 'pid=' . intval($uid) . $this->deleteClause($table));
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($mres)) {
$this->deleteVersionsForRecord($table, $row['uid'], $forceHardDelete);
$this->deleteRecord($table, $row['uid'], TRUE, $forceHardDelete);
if(t3lib_BEfunc::getRecord($table, $row['uid'])){
$this->deleteVersionsForRecord($table, $row['uid'], $forceHardDelete);
$this->deleteRecord($table, $row['uid'], TRUE, $forceHardDelete);
}
}
$GLOBALS['TYPO3_DB']->sql_free_result($mres);
}
(2-2/3)