summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-03 02:26:48 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-03 02:26:48 +0000
commit37ce4641c9c111250b5c3ebd6e1d1627037b0f73 (patch)
treef7819c2854aa0fcc4e1ec328beb9d7665efe2951 /albums.php
parent47b5a2f404ef54ea4365fdcf258301e7d572d198 (diff)
downloadampache-37ce4641c9c111250b5c3ebd6e1d1627037b0f73.tar.gz
ampache-37ce4641c9c111250b5c3ebd6e1d1627037b0f73.tar.bz2
ampache-37ce4641c9c111250b5c3ebd6e1d1627037b0f73.zip
fixed album art searching when there is more then one artist on the album
Diffstat (limited to 'albums.php')
-rw-r--r--albums.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/albums.php b/albums.php
index b5e351c5..02e591b6 100644
--- a/albums.php
+++ b/albums.php
@@ -84,7 +84,7 @@ elseif ($_REQUEST['action'] === 'find_art') {
if (isset($_REQUEST['artist_name'])) {
$artist = scrub_in($_REQUEST['artist_name']);
}
- else {
+ elseif ($album->artist_count == '1') {
$artist = $album->artist;
}
@@ -109,7 +109,7 @@ elseif ($_REQUEST['action'] === 'find_art') {
}
$albumname = $album->name;
- $artistname = $album->artist;
+ $artistname = $artist;
// Remember the last typed entry, if there was one
if (isset($_REQUEST['album_name'])) { $albumname = scrub_in($_REQUEST['album_name']); }