From 70b791a1c10c422661b7340e900ead3d3e081217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=CC=88hringer?= Date: Wed, 20 Aug 2014 11:46:10 +0200 Subject: [PATCH] Patch for Issue https://forge.typo3.org/issues/30229 --- t3lib/class.t3lib_tcemain.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t3lib/class.t3lib_tcemain.php b/t3lib/class.t3lib_tcemain.php index 4f329f9..df3a797 100644 --- a/t3lib/class.t3lib_tcemain.php +++ b/t3lib/class.t3lib_tcemain.php @@ -4355,8 +4355,10 @@ class t3lib_TCEmain { 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); } -- 1.8.4.2