diff options
| author | Anthony Lavado <anthonylavado@users.noreply.github.com> | 2019-09-02 02:07:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-02 02:07:19 -0400 |
| commit | cb393c215a2ea75f61d0e3e798c6a4a596d720c2 (patch) | |
| tree | 1eb9586e139de7af8cc906ca4aa758e5106cb35d /Emby.Server.Implementations/Data | |
| parent | c4eac8b3c6257e4a2aab2fa93d877fbcff8fee51 (diff) | |
| parent | e4f893a0eb955d43e7ef4c99bef8d4bfeb61a771 (diff) | |
Merge pull request #1686 from Bond-009/warn7
More warning fixes
Diffstat (limited to 'Emby.Server.Implementations/Data')
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteItemRepository.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index 9d983307f..c3789eef2 100644 --- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs @@ -979,7 +979,7 @@ namespace Emby.Server.Implementations.Data } string artists = null; - if (item is IHasArtist hasArtists && hasArtists.Artists.Length > 0) + if (item is IHasArtist hasArtists && hasArtists.Artists.Count > 0) { artists = string.Join("|", hasArtists.Artists); } @@ -987,7 +987,7 @@ namespace Emby.Server.Implementations.Data string albumArtists = null; if (item is IHasAlbumArtist hasAlbumArtists - && hasAlbumArtists.AlbumArtists.Length > 0) + && hasAlbumArtists.AlbumArtists.Count > 0) { albumArtists = string.Join("|", hasAlbumArtists.AlbumArtists); } @@ -5731,7 +5731,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type { if (isSubsequentRow) { - insertText.Append(","); + insertText.Append(','); } insertText.AppendFormat("(@ItemId, @Name{0}, @Role{0}, @PersonType{0}, @SortOrder{0}, @ListOrder{0})", i.ToString(CultureInfo.InvariantCulture)); |
