From 7a02fb0ad4ec94e9a44320d0c5d6e002943bcc46 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 27 Apr 2018 15:45:14 +0200 Subject: [PATCH] Translation : fix error when trying to translate empty string --- public_html/includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public_html/includes/functions.php b/public_html/includes/functions.php index 3cd0c01a..47f6981a 100644 --- a/public_html/includes/functions.php +++ b/public_html/includes/functions.php @@ -473,6 +473,7 @@ function LSdebugDefined() { } function __($msg) { + if (empty($msg)) return $msg; if (isset($GLOBALS['LSlang'][$msg])) { return $GLOBALS['LSlang'][$msg]; }