diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-04-22 03:09:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-04-22 03:09:45 +0000 |
commit | 0e1e087655f05f0629a54cad98ed3fbe8a6e0484 (patch) | |
tree | e26846ae77afd4d059be32416d17bffa2844eaa8 /lib/class/democratic.class.php | |
parent | 310adfa35923938b97ea416cd21c431d64eaa05a (diff) | |
download | ampache-0e1e087655f05f0629a54cad98ed3fbe8a6e0484.tar.gz ampache-0e1e087655f05f0629a54cad98ed3fbe8a6e0484.tar.bz2 ampache-0e1e087655f05f0629a54cad98ed3fbe8a6e0484.zip |
fixed remove vote removing all votes regardless on democratic play
Diffstat (limited to 'lib/class/democratic.class.php')
-rw-r--r-- | lib/class/democratic.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/democratic.class.php b/lib/class/democratic.class.php index e91abb45..b8835766 100644 --- a/lib/class/democratic.class.php +++ b/lib/class/democratic.class.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2008 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -410,7 +410,7 @@ class Democratic extends tmpPlaylist { $object_id = Dba::escape($row_id); $user_id = Dba::escape($GLOBALS['user']->id); - $sql = "DELETE FROM `user_vote` WHERE `object_id`='$object_id'"; + $sql = "DELETE FROM `user_vote` WHERE `object_id`='$object_id' AND `user`='$user_id'"; $db_results = Dba::query($sql); /* Clean up anything that has no votes */ |