Translation : fix error when trying to translate empty string

This commit is contained in:
Benjamin Renard 2018-04-27 15:45:14 +02:00
parent baeea8d670
commit 7a02fb0ad4

View file

@ -473,6 +473,7 @@ function LSdebugDefined() {
}
function __($msg) {
if (empty($msg)) return $msg;
if (isset($GLOBALS['LSlang'][$msg])) {
return $GLOBALS['LSlang'][$msg];
}