in some cases no translations are loaded because $this->lang is empty not null

This commit is contained in:
Thomas Mueller 2012-09-02 14:14:15 +02:00
parent 3c784ede83
commit 5f2751c672
1 changed files with 1 additions and 1 deletions

View 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);
}