diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-05 22:33:02 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-05 22:33:02 +0000 |
commit | 66688aeea7d25723bbfa2b09f7135c61ad5894b2 (patch) | |
tree | 084adec2b0b5af1ae1d2a14bf653514a42544611 | |
parent | a8589cef1e311a032a67ecdc61e2b73197373288 (diff) | |
download | ampache-66688aeea7d25723bbfa2b09f7135c61ad5894b2.tar.gz ampache-66688aeea7d25723bbfa2b09f7135c61ad5894b2.tar.bz2 ampache-66688aeea7d25723bbfa2b09f7135c61ad5894b2.zip |
stupid php
-rw-r--r-- | lib/class/tmp_playlist.class.php | 2 | ||||
-rw-r--r-- | play/index.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/class/tmp_playlist.class.php b/lib/class/tmp_playlist.class.php index eea57066..e82036f3 100644 --- a/lib/class/tmp_playlist.class.php +++ b/lib/class/tmp_playlist.class.php @@ -42,7 +42,7 @@ class tmpPlaylist { * This takes a playlist_id as an optional argument and gathers the information * if not playlist_id is passed returns false (or if it isn't found */ - function tmpPlaylist($playlist_id = 0) { + function tmpPlaylist($playlist_id='') { if (!$playlist_id) { return false; } 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(); } |