diff MoinMoin/theme/__init__.py @ 338:bf754e0d6472

don't crash in themecode if username is None imported from: moin--main--1.5--patch-342
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 20 Dec 2005 21:43:32 +0000
parents 4e5e4fc9f7fa
children f25101c236bb
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Tue Dec 20 21:41:45 2005 +0000
+++ b/MoinMoin/theme/__init__.py	Tue Dec 20 21:43:32 2005 +0000
@@ -208,7 +208,7 @@
         userlinks = []
         # Add username/homepage link for registered users. We don't care
         # if it exists, the user can create it.
-        if request.user.valid:
+        if request.user.valid and request.user.name:
             interwiki = wikiutil.getInterwikiHomePage(request)
             name = request.user.name
             aliasname = request.user.aliasname