diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-06-24 14:37:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-24 14:37:49 -0400 |
| commit | 287178cbf5321ad3e4b21f2e2e374a272a136b75 (patch) | |
| tree | e97323a2c9c31d0f045cf15ceddbc5f635cef0a7 /Emby.Server.Implementations/Data | |
| parent | c9be2c21f42a3590e0c5860728b9b283d7648d5e (diff) | |
| parent | 31a3e0f5c49804e9acceb7718542d1c04445425b (diff) | |
Merge pull request #2726 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Data')
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteItemRepository.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index e999f5753..1144bd3c6 100644 --- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs @@ -4297,12 +4297,9 @@ namespace Emby.Server.Implementations.Data } } - if (query.HasDeadParentId.HasValue) + if (query.HasDeadParentId.HasValue && query.HasDeadParentId.Value) { - if (query.HasDeadParentId.Value) - { - whereClauses.Add("ParentId NOT NULL AND ParentId NOT IN (select guid from TypedBaseItems)"); - } + whereClauses.Add("ParentId NOT NULL AND ParentId NOT IN (select guid from TypedBaseItems)"); } if (query.Years.Length == 1) |
