aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-01-17 22:20:56 +0000
committerrvelices <rv-github@modusoptimus.com>2014-01-17 22:20:56 +0000
commita5e853c618da907f14299bc78233311d5d4b036c (patch)
treea41a64708448a09ab91b96fd469e452cfd454e7b /include
parenta02af472bc2e39f466dcb0b658333e437a28455e (diff)
merge -r26837 from trunk to branch 2.6
admin rating improvements - use web service for deletion - use datatables for rating by user - use fontello icons git-svn-id: http://piwigo.org/svn/branches/2.6@26838 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)