From 290ac559744140c0f2f15bc2226baee03690011d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20G=C3=B6tzinger?= Date: Fri, 27 Feb 2015 22:22:49 +0100 Subject: [PATCH] =?UTF-8?q?L=C3=B6schen=20von=20Ratings=20zu=20gel=C3=B6sc?= =?UTF-8?q?hten=20Bildern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dca/tl_content.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dca/tl_content.php b/dca/tl_content.php index f70ec12..fcbdc87 100644 --- a/dca/tl_content.php +++ b/dca/tl_content.php @@ -134,6 +134,8 @@ class tl_content_rateit extends rateit\DcaHelper { public function delete(\DC_Table $dc) { if ($dc->activeRecord->type == "gallery") { + $this->Database->prepare("DELETE FROM tl_rateit_ratings WHERE pid IN (SELECT `id` FROM tl_rateit_items WHERE rkey LIKE ? AND typ=?)") + ->execute($dc->activeRecord->id.'|%', 'galpic'); $this->Database->prepare("DELETE FROM tl_rateit_items WHERE rkey LIKE ? AND typ=?")->execute($dc->activeRecord->id.'|%', 'galpic'); return true; } else {