From 407b618fc7c3a4be60e7ee14dca4d01edf205d44 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 17 Jan 2007 04:45:28 +0000 Subject: localplay controllers and some spelling fixes --- modules/localplay/mpd.controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/localplay/mpd.controller.php') diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php index c31a020b..c002d299 100644 --- a/modules/localplay/mpd.controller.php +++ b/modules/localplay/mpd.controller.php @@ -345,7 +345,7 @@ class AmpacheMpd { /* If we don't know it, look up by filename */ if (!$song->title) { $filename = sql_escape($entry['file']); - $sql = "SELECT id FROM song WHERE file = '$filename'"; + $sql = "SELECT id FROM song WHERE file LIKE '%$filename'"; $db_results = mysql_query($sql, dbh()); if ($r = mysql_fetch_assoc($db_results)) { $song = new Song($r['id']); -- cgit