summaryrefslogtreecommitdiffstats
path: root/lib/class/tmp_playlist.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-23 08:00:34 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-23 08:00:34 +0000
commitf283e4040e0dea301c94278470515ca6472af8c2 (patch)
tree72ddc03245026420fe128c5cd149fa9fa8103d80 /lib/class/tmp_playlist.class.php
parent2faea5f7b345ba0d9319d4466261b52c7bff0325 (diff)
downloadampache-f283e4040e0dea301c94278470515ca6472af8c2.tar.gz
ampache-f283e4040e0dea301c94278470515ca6472af8c2.tar.bz2
ampache-f283e4040e0dea301c94278470515ca6472af8c2.zip
few more tweaks and some work on the tv pages
Diffstat (limited to 'lib/class/tmp_playlist.class.php')
-rw-r--r--lib/class/tmp_playlist.class.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/class/tmp_playlist.class.php b/lib/class/tmp_playlist.class.php
index 2bf4cd4a..8829c41e 100644
--- a/lib/class/tmp_playlist.class.php
+++ b/lib/class/tmp_playlist.class.php
@@ -191,6 +191,20 @@ class tmpPlaylist {
} // has_vote
/**
+ * vote_active
+ * This checks to see if this playlist is a voting playlist
+ * and if it is active
+ */
+ function vote_active() {
+
+ /* Going to do a little more here later */
+ if ($this->type == 'vote') { return true; }
+
+ return false;
+
+ } // vote_active
+
+ /**
* delete_track
* This deletes a track and any assoicated votes, we only check for
* votes if it's a -1 session