diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-12-28 22:12:10 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-12-28 22:12:10 +0000 |
commit | b2b41d6c4a67f82c49e90e6f705f1700cd32a1aa (patch) | |
tree | 7b026e35cdac2f4ee7de98d5cd9dc9c263a946d9 /templates/rightbar.inc.php | |
parent | b43aacaabaafd431d3bada7ffc8d63b678a571c2 (diff) | |
download | ampache-b2b41d6c4a67f82c49e90e6f705f1700cd32a1aa.tar.gz ampache-b2b41d6c4a67f82c49e90e6f705f1700cd32a1aa.tar.bz2 ampache-b2b41d6c4a67f82c49e90e6f705f1700cd32a1aa.zip |
put in a hack to clear the rightbar if the preferences deem it so
Diffstat (limited to 'templates/rightbar.inc.php')
-rw-r--r-- | templates/rightbar.inc.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/rightbar.inc.php b/templates/rightbar.inc.php index 22bc74e6..0ee60c87 100644 --- a/templates/rightbar.inc.php +++ b/templates/rightbar.inc.php @@ -74,8 +74,13 @@ <?php if (Config::get('play_type') == 'localplay') { require_once Config::get('prefix') . '/templates/show_localplay_control.inc.php'; } ?> <ul id="rb_current_playlist"> <?php - //FIXME :: this feels kludgy - $objects = $GLOBALS['user']->playlist->get_items(); + + $objects = array(); + + //FIXME :: this is kludgy + if (NO_SONGS != '1') { + $objects = $GLOBALS['user']->playlist->get_items(); + } // Limit the number of objects we show here if (count($objects) > 100) { |