summaryrefslogtreecommitdiffstats
path: root/modules/localplay/mpd.controller.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-17 04:45:28 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-17 04:45:28 +0000
commit407b618fc7c3a4be60e7ee14dca4d01edf205d44 (patch)
tree55ba8f4f1a21cb48feb0b74360e17683c8396789 /modules/localplay/mpd.controller.php
parent2979c691e52422eb255ea2bc7be033c7d2a6a29f (diff)
downloadampache-407b618fc7c3a4be60e7ee14dca4d01edf205d44.tar.gz
ampache-407b618fc7c3a4be60e7ee14dca4d01edf205d44.tar.bz2
ampache-407b618fc7c3a4be60e7ee14dca4d01edf205d44.zip
localplay controllers and some spelling fixes
Diffstat (limited to 'modules/localplay/mpd.controller.php')
-rw-r--r--modules/localplay/mpd.controller.php2
1 files changed, 1 insertions, 1 deletions
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']);