changeset 2202:9a719f7dfd9d

empty string comment fix
author Ana Balica <ana.balica@gmail.com>
date Mon, 23 Sep 2013 20:45:16 +0200
parents c4489bad0cd2
children 1dbca960f9f6
files MoinMoin/util/notifications.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/notifications.py	Mon Sep 23 20:43:39 2013 +0200
+++ b/MoinMoin/util/notifications.py	Mon Sep 23 20:45:16 2013 +0200
@@ -150,7 +150,7 @@
                                                   item_name=self.item_name))
         diff_url = self.generate_diff_url(domain)
         item_url = urljoin(domain, url_for('frontend.show_item', item_name=self.item_name))
-        if self.comment:
+        if self.comment is not None:
             comment = self.meta["comment"]
         else:
             comment = self.revs[0].meta["comment"]