diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-24 15:58:51 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-24 16:03:25 +0000 |
commit | f56b3df0bcb2c678b944f5086adad6e3e678252a (patch) | |
tree | 88f6748e250be0e8f4bd696c4e84fbf0ce83ef15 /apps/media | |
parent | c53a8fa541dec244085ce551f2b1dd5b18b6e568 (diff) | |
download | nextcloud-server-f56b3df0bcb2c678b944f5086adad6e3e678252a.tar.gz nextcloud-server-f56b3df0bcb2c678b944f5086adad6e3e678252a.zip |
Resolve scanning issue case comparison of songs
Diffstat (limited to 'apps/media')
-rw-r--r-- | apps/media/lib_collection.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/lib_collection.php b/apps/media/lib_collection.php index bf82e65e62b..598c08d32e2 100644 --- a/apps/media/lib_collection.php +++ b/apps/media/lib_collection.php @@ -104,7 +104,7 @@ class OC_MEDIA_COLLECTION{ return self::$albumIdCache[$artistId][$albumId][$name]; }else{ $uid=$_SESSION['user_id']; - $query=OCP\DB::prepare("SELECT song_id FROM *PREFIX*media_songs WHERE song_user=? AND song_name LIKE ? AND song_artist=? AND song_album=?"); + $query=OCP\DB::prepare("SELECT song_id FROM *PREFIX*media_songs WHERE song_user=? AND lower(song_name) LIKE ? AND song_artist=? AND song_album=?"); $songs=$query->execute(array($uid,$name,$artistId,$albumId))->fetchAll(); if(is_array($songs) and isset($songs[0])){ self::$albumIdCache[$artistId][$albumId][$name]=$songs[0]['song_id']; |