Saving events to Events DB : Fixed bugs when connection string was not defined, ver. 2.26.1543

This commit is contained in:
Milan Hanajik
2020-11-18 10:46:00 +01:00
parent 5f5063663c
commit 5f44fd4bdb
6 changed files with 16 additions and 32 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ namespace TBF.UI.Calendar
log.ErrorFormat("Failed to load or update CustomEvent-s in ServeTriggerEvtCalendarEvents(): {0}", exc.Message);
}
if (eventsToTrigger.Count > 0)
if (eventsToTrigger.Count > 0 && !string.IsNullOrEmpty(global::Events.DB.ConnectionString))
{
try
{