]> source.dussan.org Git - nextcloud-server.git/commitdiff
in some cases no translations are loaded because $this->lang is empty not null
authorThomas Mueller <thomas.mueller@tmit.eu>
Sun, 2 Sep 2012 12:14:15 +0000 (14:14 +0200)
committerThomas Mueller <thomas.mueller@tmit.eu>
Sun, 2 Sep 2012 12:15:03 +0000 (14:15 +0200)
lib/l10n.php

index 4560cb7dbb0b78cedbb72b50f8a6cca241c4418e..cd1d53bce0b82aec48a45c343c4ed73e3d109cfa 100644 (file)
@@ -99,7 +99,7 @@ class OC_L10N{
                $lang = $this->lang;
                $this->app = true;
                // Find the right language
-               if(is_null($lang)){
+               if(is_null($lang) || $lang == '') {
                        $lang = self::findLanguage($app);
                }