summaryrefslogtreecommitdiffstats
path: root/lib/album.lib.php
diff options
context:
space:
mode:
authorspocky <spocky@ampache>2007-01-11 22:02:45 +0000
committerspocky <spocky@ampache>2007-01-11 22:02:45 +0000
commit65929b1bcc5e8692dd6e716d3066fbd92d754a26 (patch)
tree6c9e422ad59d5eee321d492ecf1ce372ea1da115 /lib/album.lib.php
parentdced24f2c5475199fd7f23de726ae2f1423e3956 (diff)
downloadampache-65929b1bcc5e8692dd6e716d3066fbd92d754a26.tar.gz
ampache-65929b1bcc5e8692dd6e716d3066fbd92d754a26.tar.bz2
ampache-65929b1bcc5e8692dd6e716d3066fbd92d754a26.zip
- Added artist name on "Albums of the Moment" tooltip
- Don't display "Album of the Moment" without art - Minor html/text adjustments
Diffstat (limited to 'lib/album.lib.php')
-rw-r--r--lib/album.lib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/album.lib.php b/lib/album.lib.php
index 134e040e..29c9e90a 100644
--- a/lib/album.lib.php
+++ b/lib/album.lib.php
@@ -70,7 +70,7 @@ function get_random_albums($count='') {
$count = sql_escape($count);
- $sql = "SELECT id FROM album ORDER BY RAND() LIMIT $count";
+ $sql = "SELECT id FROM album WHERE art IS NOT NULL ORDER BY RAND() LIMIT $count";
$db_results = mysql_query($sql,dbh());
$results = array();