summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-16 10:02:48 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-16 10:02:48 +0000
commit36b2bc803d20e93a58f1502684ba14ccbe144fb1 (patch)
tree0aefc20f1078a7f3736a68e6035f2cfb366a8a02 /albums.php
parent8a847a4efd25e5b419886e55d55bc4fd9b9e55c9 (diff)
downloadampache-36b2bc803d20e93a58f1502684ba14ccbe144fb1.tar.gz
ampache-36b2bc803d20e93a58f1502684ba14ccbe144fb1.tar.bz2
ampache-36b2bc803d20e93a58f1502684ba14ccbe144fb1.zip
wups
Diffstat (limited to 'albums.php')
-rw-r--r--albums.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/albums.php b/albums.php
index 96596c54..57173ac7 100644
--- a/albums.php
+++ b/albums.php
@@ -81,22 +81,24 @@ elseif ($_REQUEST['action'] === 'find_art') {
// get the Album information
$album = new Album($_REQUEST['album_id']);
- if ($_REQUEST['artist_name']) {
+ if (isset($_REQUEST['artist_name'])) {
$artist = scrub_in($_REQUEST['artist_name']);
}
else {
$artist = $album->artist;
}
- if ($_REQUEST['album_name']) {
+ if (isset($_REQUEST['album_name'])) {
$album_name = scrub_in($_REQUEST['album_name']);
}
else {
$album_name = $album->name;
}
+ $search = $artist . " " . $album_name;
+
// Attempt to find the art with what we've got
- $images = $album->find_art($_REQUEST['cover'], $artist . " " . $album_name);
+ $images = $album->find_art($_REQUEST['cover'], $search);
$_SESSION['form']['images'] = $images;
if (count($images)) {