summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-05 22:33:02 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-05 22:33:02 +0000
commit66688aeea7d25723bbfa2b09f7135c61ad5894b2 (patch)
tree084adec2b0b5af1ae1d2a14bf653514a42544611 /play/index.php
parenta8589cef1e311a032a67ecdc61e2b73197373288 (diff)
downloadampache-66688aeea7d25723bbfa2b09f7135c61ad5894b2.tar.gz
ampache-66688aeea7d25723bbfa2b09f7135c61ad5894b2.tar.bz2
ampache-66688aeea7d25723bbfa2b09f7135c61ad5894b2.zip
stupid php
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php
index 9b066665..581b3ce6 100644
--- a/play/index.php
+++ b/play/index.php
@@ -88,7 +88,8 @@ if (conf('access_control')) {
* current song, and do any other crazyness
* we need to
*/
-if ($tmp_playlist = new tmpPlaylist($tmp_id)) {
+if ($tmp_id) {
+ $tmp_playlist = new tmpPlaylist($tmp_id);
/* This takes into account votes etc and removes the */
$song_id = $tmp_playlist->get_next_object();
}