From 97c78343ae899e59226ecbeb88dc4805b5ddc751 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 26 Dec 2007 04:32:08 +0000 Subject: two file pattern fixes and some more work on the flagged stuff as well as some minor cleanup on the album art links --- bin/print_tags.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/print_tags.inc b/bin/print_tags.inc index 63c19303..67c56ebb 100644 --- a/bin/print_tags.inc +++ b/bin/print_tags.inc @@ -33,7 +33,7 @@ else { echo "Reading: $filename\n"; /* Attempt to figure out what catalog it comes from */ -$sql = "SELECT `catalog`.`id` FROM `song` INNER JOIN `catalog` ON `song`.`catalog`=`catalog`.`id` WHERE `song`.`file`='" . Dba::escape($filename) . "'"; +$sql = "SELECT `catalog`.`id` FROM `song` INNER JOIN `catalog` ON `song`.`catalog`=`catalog`.`id` WHERE `song`.`file`='%" . Dba::escape($filename) . "'"; $db_results = Dba::query($sql); $results = Dba::fetch_assoc($db_results); -- cgit