diff options
Diffstat (limited to 'play/index.php')
-rw-r--r-- | play/index.php | 3 |
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(); } |