aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include/functions.php')
-rw-r--r--admin/include/functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index f40889b67..002c1747a 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -299,6 +299,14 @@ DELETE FROM '.FAVORITES_TABLE.'
'.wordwrap(implode(', ', $ids), 80, "\n").')
;';
mysql_query($query);
+
+ // destruction of the rates associated to this element
+ $query = '
+DELETE FROM '.RATE_TABLE.'
+ WHERE element_id IN (
+'.wordwrap(implode(', ', $ids), 80, "\n").')
+;';
+ mysql_query($query);
// destruction of the image
$query = '