]> git.ipfire.org Git - ipfire.org.git/blobdiff - www/webapp/ui_modules.py
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire.org
[ipfire.org.git] / www / webapp / ui_modules.py
index c77b3bece63dd23fc6435746b39a85ddb4a55574..7a64c1e2485513b9d61a827365f83878987e10d4 100644 (file)
@@ -207,9 +207,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