summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-09-02 14:14:15 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-09-02 14:15:03 +0200
commit5f2751c67261643cace2a6fce374f723a4838e34 (patch)
treecdd39bf7906c7d0b29e6df9df4464fcb2bf217e3 /lib
parent3c784ede830974a6816f5d971d6e14305c34c0c9 (diff)
downloadnextcloud-server-5f2751c67261643cace2a6fce374f723a4838e34.tar.gz
nextcloud-server-5f2751c67261643cace2a6fce374f723a4838e34.zip
in some cases no translations are loaded because $this->lang is empty not null
Diffstat (limited to 'lib')
-rw-r--r--lib/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index 4560cb7dbb0..cd1d53bce0b 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -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);
}