summaryrefslogtreecommitdiffstats
path: root/stats.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-16 07:42:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-16 07:42:36 +0000
commit965afffeb50044f266975570bafe887ccea5b9f3 (patch)
tree967acb63f7e98a3e02ce5d532e597e9f58bf10fc /stats.php
parent883a1d60d3993f606131108d8c5675617d94bc82 (diff)
downloadampache-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.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/stats.php b/stats.php
index a36e5148..f77a8c2d 100644
--- a/stats.php
+++ b/stats.php
@@ -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 */