diff --git a/phpgwapi/inc/class.translation_sql.inc.php b/phpgwapi/inc/class.translation_sql.inc.php index b040284b36..0e077ed44b 100644 --- a/phpgwapi/inc/class.translation_sql.inc.php +++ b/phpgwapi/inc/class.translation_sql.inc.php @@ -93,7 +93,7 @@ } return $this->charsets[$lang]; } - return $this->system_charset ? $this->system_charset : strtolower($this->translate('charset')); + return $this->system_charset || !is_array($GLOBALS['lang']) ? $this->system_charset : strtolower($this->translate('charset')); } function init()