aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/ws_functions/pwg.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ws_functions/pwg.php b/include/ws_functions/pwg.php
index 0def2031f..5f3772aff 100644
--- a/include/ws_functions/pwg.php
+++ b/include/ws_functions/pwg.php
@@ -271,6 +271,10 @@ DELETE FROM '. RATE_TABLE .'
{
$query .= ' AND anonymous_id=\''.$params['anonymous_id'].'\'';
}
+ if (!empty($params['image_id']))
+ {
+ $query .= ' AND element_id='.$params['image_id'];
+ }
$changes = pwg_db_changes(pwg_query($query));
if ($changes)