summaryrefslogtreecommitdiffstats
path: root/templates/show_now_playing.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-12-28 22:26:51 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-12-28 22:26:51 +0000
commitd17138068ae8dd7b87cdff11bdd0735028c2409d (patch)
tree679463035e1a81f019303fa7fde229806bd7aa2b /templates/show_now_playing.inc.php
parentb2b41d6c4a67f82c49e90e6f705f1700cd32a1aa (diff)
downloadampache-d17138068ae8dd7b87cdff11bdd0735028c2409d.tar.gz
ampache-d17138068ae8dd7b87cdff11bdd0735028c2409d.tar.bz2
ampache-d17138068ae8dd7b87cdff11bdd0735028c2409d.zip
fix a display issue with the now playing that caused it to split up the results
Diffstat (limited to 'templates/show_now_playing.inc.php')
-rw-r--r--templates/show_now_playing.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/show_now_playing.inc.php b/templates/show_now_playing.inc.php
index a1ee87a7..9f043cc1 100644
--- a/templates/show_now_playing.inc.php
+++ b/templates/show_now_playing.inc.php
@@ -31,7 +31,6 @@ if (count($results)) {
$link = Config::get('use_rss') ? ' ' . AmpacheRSS::get_display('nowplaying') : '';
?>
<?php show_box_top(_('Now Playing') . $link); ?>
-<div class="np_row">
<?php
foreach ($results as $item) {
$song = $item['song'];
@@ -41,11 +40,12 @@ foreach ($results as $item) {
/* If we've gotten a non-song object just skip this row */
if (!is_object($song)) { continue; }
if (!$np_user->fullname) { $np_user->fullname = "Ampache User"; }
-
- require Config::get('prefix') . '/templates/show_now_playing_row.inc.php';
-
-} // end foreach
?>
+<div class="np_row">
+<?php require Config::get('prefix') . '/templates/show_now_playing_row.inc.php'; ?>
</div>
+<?php
+} // end foreach
+?>
<?php show_box_bottom(); ?>
<?php } // end if count results ?>