mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Merge pull request #2039 from Bond-009/fixcondition
Fix always false condition
This commit is contained in:
commit
47ad21b6e3
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||
NameContains = query.NameContains ?? query.SearchTerm
|
||||
});
|
||||
|
||||
if (query.IsFavorite ?? false && query.User != null)
|
||||
if ((query.IsFavorite ?? false) && query.User != null)
|
||||
{
|
||||
items = items.Where(i => UserDataRepository.GetUserData(query.User, i).IsFavorite).ToList();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue