aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-01-17 22:19:44 +0000
committerrvelices <rv-github@modusoptimus.com>2014-01-17 22:19:44 +0000
commit50927b3569b389da6949d559805f2e846745921c (patch)
tree347a22dfe357affadd7f18773480570c7bda5043 /include
parent998cc9c1acdb39fc24879566ef6a8c8b061b7c7f (diff)
admin rating improvements
- use web service for deletion - use datatables for rating by user - use fontello icons git-svn-id: http://piwigo.org/svn/trunk@26837 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-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)