pull/50/head
Thomas Sileo 11 years ago
parent e50ecc7811
commit a322cf673a

@ -111,7 +111,7 @@ class SMTP(object):
if "parent" in comment:
comment_parent = self.isso.db.comments.get(comment["parent"])
# Notify the author that a new comment is posted if requested
if "email" in comment_parent and comment_parent["notification"]:
if comment_parent and "email" in comment_parent and comment_parent["notification"]:
body = self.format(thread, comment, admin=False)
subject = "Re: New comment posted on %s" % thread["title"]
self.sendmail(subject, body, thread, comment, to=comment_parent["email"])

Loading…
Cancel
Save