summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-26 04:42:12 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-26 04:42:12 +0000
commit76f3e77c299854030398c23b0401505b6fca1007 (patch)
treeb50487b005e5eef549c475a8655cb1b18def7197 /bin
parent97c78343ae899e59226ecbeb88dc4805b5ddc751 (diff)
downloadampache-76f3e77c299854030398c23b0401505b6fca1007.tar.gz
ampache-76f3e77c299854030398c23b0401505b6fca1007.tar.bz2
ampache-76f3e77c299854030398c23b0401505b6fca1007.zip
last commit for the day...
Diffstat (limited to 'bin')
-rw-r--r--bin/print_tags.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/print_tags.inc b/bin/print_tags.inc
index 67c56ebb..610d57e6 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` LIKE '%" . Dba::escape($filename) . "'";
$db_results = Dba::query($sql);
$results = Dba::fetch_assoc($db_results);