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 | |
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
-rwxr-xr-x | docs/CHANGELOG | 4 | ||||
-rw-r--r-- | lib/class/democratic.class.php | 4 | ||||
-rw-r--r-- | server/democratic.ajax.php | 2 | ||||
-rw-r--r-- | templates/show_xspf_player.inc.php | 2 |
4 files changed, 8 insertions, 4 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 6e31681e..36cb3bae 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -3,6 +3,10 @@ -------------------------------------------------------------------------- -------------------------------------------------------------------------- + v.3.4 + - Fixed Remove one vote, removes all votes on democratic play + +-------------------------------------------------------------------------- v.3.4-Beta3 04/20/2008 - Fixed Rating display and Rating Advanced Search - Added ability to specify new Genre when adding a Radio Station 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 */ diff --git a/server/democratic.ajax.php b/server/democratic.ajax.php index ccb22b9c..97da2aaa 100644 --- a/server/democratic.ajax.php +++ b/server/democratic.ajax.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or diff --git a/templates/show_xspf_player.inc.php b/templates/show_xspf_player.inc.php index 955bcfa6..bc387f7f 100644 --- a/templates/show_xspf_player.inc.php +++ b/templates/show_xspf_player.inc.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or |