diff --git a/PivotSubscriptions/Task.cls b/PivotSubscriptions/Task.cls index 2fab7d6..a250c4c 100644 --- a/PivotSubscriptions/Task.cls +++ b/PivotSubscriptions/Task.cls @@ -140,7 +140,7 @@ ClassMethod SendEmail(pID, pPivot As %String, pEmails As %String, pFormat As %St Do msg.To.SetAt(tEmail,1) // Send email - If $G(^PivotSubscriptions.Settings("SendNoData"),1) { + If tHasResults||$G(^PivotSubscriptions.Settings("SendNoData"),1) { Set tSC=server.Send(msg) } // TODO: Log individual send status?