summaryrefslogtreecommitdiffstats
path: root/stream.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-25 08:50:02 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-25 08:50:02 +0000
commitb588a9475f7e37f80ada63d98448e933e19bf95a (patch)
tree752df5f05ffa55b8a339cc844c19d83e1a3a76bc /stream.php
parent4040d0623dc6c88ee7119dd00244b8800c8e4684 (diff)
downloadampache-b588a9475f7e37f80ada63d98448e933e19bf95a.tar.gz
ampache-b588a9475f7e37f80ada63d98448e933e19bf95a.tar.bz2
ampache-b588a9475f7e37f80ada63d98448e933e19bf95a.zip
slight tweak to prevent the user from trying to loop their democratic play
Diffstat (limited to 'stream.php')
-rw-r--r--stream.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/stream.php b/stream.php
index 9f2ecc37..c48d53c6 100644
--- a/stream.php
+++ b/stream.php
@@ -193,6 +193,12 @@ switch ($_REQUEST['method']) {
case 'download':
$stream_type = 'download';
break;
+ case 'democratic':
+ // Don't let them loop it
+ if ($GLOBALS['user']->prefs['play_type'] == 'democratic') {
+ $GLOBALS['user']->prefs['play_type'] = 'stream';
+ }
+ break;
default:
$stream_type = $GLOBALS['user']->prefs['play_type'];
break;