diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/print_tags.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |