From b3dcd437cb507774753659faa113d499e107e201 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 6 Dec 2007 06:05:32 +0000 Subject: fixed lack of prefix on albums improves album art search results, thx darkside --- lib/class/catalog.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/class/catalog.class.php') diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index e7942444..cfab9321 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -615,9 +615,9 @@ class Catalog { // Define the options we want to use for the find art function $options = array( - 'album_name' => $album->name, + 'album_name' => $album->full_name, 'artist' => $album->artist_name, - 'keyword' => $album->artist_name . ' ' . $album->name + 'keyword' => $album->artist_name . ' ' . $album->full_name ); // Return results @@ -2236,6 +2236,9 @@ class Catalog { $sql = "DELETE FROM `song` WHERE `catalog` = '$catalog_id'"; $db_results = Dba::query($sql); + // Only if the previous one works do we go on + if (!$db_results) { return false; } + // Next Remove the Catalog Entry it's self $sql = "DELETE FROM `catalog` WHERE `id` = '$catalog_id'"; $db_results = Dba::query($sql); -- cgit