diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-16 07:42:36 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-16 07:42:36 +0000 |
commit | 965afffeb50044f266975570bafe887ccea5b9f3 (patch) | |
tree | 967acb63f7e98a3e02ce5d532e597e9f58bf10fc /stats.php | |
parent | 883a1d60d3993f606131108d8c5675617d94bc82 (diff) | |
download | ampache-965afffeb50044f266975570bafe887ccea5b9f3.tar.gz ampache-965afffeb50044f266975570bafe887ccea5b9f3.tar.bz2 ampache-965afffeb50044f266975570bafe887ccea5b9f3.zip |
few more tweaks to box and index page
Diffstat (limited to 'stats.php')
-rw-r--r-- | stats.php | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -56,12 +56,15 @@ switch ($action) { require_once(conf('prefix') . '/templates/show_user_stats.inc.php'); - /* Build Recommendations from Ratings */ - $recommended_artists = $working_user->get_recommendations('artist'); - $recommended_albums = $working_user->get_recommendations('albums'); - $recommended_songs = $working_user->get_recommendations('song'); - - require_once(conf('prefix') . '/templates/show_user_recommendations.inc.php'); + // Onlu do this is ratings are on + if (conf('ratings')) { + /* Build Recommendations from Ratings */ + $recommended_artists = $working_user->get_recommendations('artist'); + $recommended_albums = $working_user->get_recommendations('albums'); + $recommended_songs = $working_user->get_recommendations('song'); + + require_once(conf('prefix') . '/templates/show_user_recommendations.inc.php'); + } // if ratings on show_box_top(); /* Show Most Popular artist/album/songs */ |