summaryrefslogtreecommitdiffstats
path: root/lib/class/tmpplaylist.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-11 02:46:48 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-11 02:46:48 +0000
commitb49a271f889a26e40b16fb6f78b47f2e320b40c8 (patch)
tree3480bb8a8350f5bdbacc4a3325e2c516912b43dd /lib/class/tmpplaylist.class.php
parent4b191ae6bb833c399e0d5f7606354bcd8127e436 (diff)
downloadampache-b49a271f889a26e40b16fb6f78b47f2e320b40c8.tar.gz
ampache-b49a271f889a26e40b16fb6f78b47f2e320b40c8.tar.bz2
ampache-b49a271f889a26e40b16fb6f78b47f2e320b40c8.zip
fix missing page headers on democratic playlist, also show the voters
Diffstat (limited to 'lib/class/tmpplaylist.class.php')
-rw-r--r--lib/class/tmpplaylist.class.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/class/tmpplaylist.class.php b/lib/class/tmpplaylist.class.php
index 6abdc36b..99c30cda 100644
--- a/lib/class/tmpplaylist.class.php
+++ b/lib/class/tmpplaylist.class.php
@@ -25,7 +25,7 @@
* tmp_playlist and tmp_playlist_data tables, and sneaks out at night to
* visit user_vote from time to time
*/
-class tmpPlaylist {
+class tmpPlaylist extends database_object {
/* Variables from the Datbase */
public $id;
@@ -312,24 +312,6 @@ class tmpPlaylist {
} // add_object
/**
- * get_vote
- * This returns the current count for a specific song on this tmp_playlist
- */
- public function get_vote($object_id) {
-
- $object_id = Dba::escape($object_id);
-
- $sql = "SELECT COUNT(`user`) AS `count` FROM user_vote " .
- " WHERE object_id='$object_id'";
- $db_results = Dba::query($sql);
-
- $results = Dba::fetch_assoc($db_results);
-
- return $results['count'];
-
- } // get_vote
-
- /**
* vote_active
* This checks to see if this playlist is a voting playlist
* and if it is active