update of all changes in the last week that fine-tuned the behavior of Monitor
[monitor.git] / mailer.py
index da6249d..97bd173 100755 (executable)
--- a/mailer.py
+++ b/mailer.py
@@ -171,7 +171,7 @@ def closeTicketViaRT(ticket_id, comment):
        return
 
 def emailViaRT(subject, text, to, ticket_id=None):
-       if ticket_id == None or ticket_id == "":
+       if ticket_id == None or ticket_id == "" or ticket_id == 0:
                print "No TICKET"
                return emailViaRT_NoTicket(subject, text, to)