Skip to content

Commit

Permalink
Media text: Check if index exists (#7993)
Browse files Browse the repository at this point in the history
  • Loading branch information
giannik authored Dec 17, 2020
1 parent 877886c commit c221597
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
var path = paths[i];
var url = Orchard.AssetUrl(path);
var text = !string.IsNullOrEmpty(mediaTexts[i]) ? mediaTexts[i] : path;
var text = !string.IsNullOrEmpty(mediaTexts.ElementAtOrDefault(i)) ? mediaTexts[i] : path;

if (Orchard.IsImageFile(path))
{
Expand Down

0 comments on commit c221597

Please sign in to comment.