aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-08-11 11:24:59 +0000
committerrvelices <rv-github@modusoptimus.com>2008-08-11 11:24:59 +0000
commita2e98299d793ed721fee6a2df170d205233fb9c3 (patch)
treea30281bf6fc287eb8b7f71ca3428a30a1e7bcdae /include
parent4469cbdfdeaa658aba93d9970226de2c15d49cfd (diff)
- bug fix: registered users could rate a picture several times from diffrent ip adresses
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2470 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_rate.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_rate.inc.php b/include/functions_rate.inc.php
index 4d7f756b7..181624d3e 100644
--- a/include/functions_rate.inc.php
+++ b/include/functions_rate.inc.php
@@ -116,7 +116,7 @@ DELETE
WHERE element_id = '.$image_id.'
AND user_id = '.$user['id'].'
';
- if (isset($user_anonymous))
+ if ($user_anonymous)
{
$query.= ' AND anonymous_id = \''.$anonymous_id.'\'';
}