From 5f2751c67261643cace2a6fce374f723a4838e34 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Sun, 2 Sep 2012 14:14:15 +0200 Subject: in some cases no translations are loaded because $this->lang is empty not null --- lib/l10n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3