Fixed build

This commit is contained in:
Jamie.Rees 2017-08-30 13:04:02 +01:00
parent 7414f3284d
commit ff242f2531
5 changed files with 46 additions and 4 deletions

View file

@ -30,7 +30,7 @@ namespace Ombi.Notifications.Templates
sb.Replace(SubjectKey, subject);
sb.Replace(BodyKey, body);
sb.Replace(DateKey, DateTime.Now.ToString("f"));
sb.Replace(ImgSrc, img);
sb.Replace(ImgSrc, string.IsNullOrEmpty(img) ? string.Empty : img);
sb.Replace(Logo, string.IsNullOrEmpty(logo) ? "http://i.imgur.com/qQsN78U.png" : logo);
return sb.ToString();