From a5e853c618da907f14299bc78233311d5d4b036c Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 17 Jan 2014 22:20:56 +0000 Subject: 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 --- include/ws_functions/pwg.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/ws_functions/pwg.php') 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) -- cgit v1.2.3