diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-17 06:30:36 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-17 06:30:36 +0000 |
commit | c522a2c1e97518d21e351821c27a9188e0cb3a1d (patch) | |
tree | a4a2ece3b050d4624ea9737a20bb9d2e0bf9dfb8 /lib/ui.lib.php | |
parent | 4fb9dbd3ef5b0b613efb32c5e02ca64db37d336a (diff) | |
download | ampache-c522a2c1e97518d21e351821c27a9188e0cb3a1d.tar.gz ampache-c522a2c1e97518d21e351821c27a9188e0cb3a1d.tar.bz2 ampache-c522a2c1e97518d21e351821c27a9188e0cb3a1d.zip |
some bug fixes and tweaks
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 6a20f387..c1f676ee 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -330,6 +330,10 @@ function get_now_playing($filter='') { $sql = "SELECT song_id,user FROM now_playing ORDER BY start_time DESC"; $db_results = mysql_query($sql, dbh()); + + $results = array(); + + /* While we've got stuff playing */ while ($r = mysql_fetch_assoc($db_results)) { $song = new Song($r['song_id']); $song->format_song(); |