summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-17 06:30:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-17 06:30:36 +0000
commitc522a2c1e97518d21e351821c27a9188e0cb3a1d (patch)
treea4a2ece3b050d4624ea9737a20bb9d2e0bf9dfb8 /lib/ui.lib.php
parent4fb9dbd3ef5b0b613efb32c5e02ca64db37d336a (diff)
downloadampache-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.php4
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();