backport stable changes
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 25 May 2011 14:14:08 +0200
changeset 7438 ff6ae47bb688
parent 7436 28ec860c4436 (current diff)
parent 7437 a1f48d7c8a03 (diff)
child 7439 8e1c58a212ad
backport stable changes
--- a/web/views/basecomponents.py	Wed May 25 13:39:08 2011 +0200
+++ b/web/views/basecomponents.py	Wed May 25 14:14:08 2011 +0200
@@ -191,7 +191,8 @@
             msgs = []
             if self._cw.cnx:
                 srcmsg = self._cw.get_shared_data('sources_error', pop=True)
-                msgs.append(srcmsg)
+                if srcmsg:
+                    msgs.append(srcmsg)
             reqmsg = self._cw.message # XXX don't call self._cw.message twice
             if reqmsg:
                 msgs.append(reqmsg)