changeset 2460:99b6222544c3

Fix a silly bug in userprefs thanks to johill.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 20 Jul 2007 00:18:41 +0200
parents 8ae20e588337
children f456dc2048d1
files MoinMoin/userprefs/prefs.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/prefs.py	Tue Jul 17 22:40:20 2007 +0200
+++ b/MoinMoin/userprefs/prefs.py	Fri Jul 20 00:18:41 2007 +0200
@@ -103,7 +103,7 @@
 
         if not 'jid' in theuser.auth_attribs:
             # try to get the jid
-            jid = wikiutil.clean_input(form.get('jid', "")[0]).strip()
+            jid = wikiutil.clean_input(form.get('jid', [""])[0]).strip()
 
             jid_changed = theuser.jid != jid
             previous_jid = theuser.jid