]> git.ipfire.org Git - ipfire.org.git/commitdiff
fireinfo: Fix for invalid profile.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Sep 2011 19:07:24 +0000 (21:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Sep 2011 19:07:24 +0000 (21:07 +0200)
www/webapp/ui_modules.py

index 0e7b7a37c61e66053dd6df22b31253142f75ca48..b18547d23448279a4d4a49481f51b35ef3425934 100644 (file)
@@ -193,9 +193,10 @@ class StasyTableModule(UIModule):
                        locales = tornado.locale.LOCALE_NAMES
                        _items = []
                        for k, v in items:
-                               for code, locale in locales.items():
-                                       if code.startswith(k):
-                                               k = locale["name"].split()[0]
+                               if k:
+                                       for code, locale in locales.items():
+                                               if code.startswith(k):
+                                                       k = locale["name"].split()[0]
                                _items.append((k, v))
                        items = _items