From 1e45dcf6fb405a0e7b495847e889a54d935f9491 Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 20 Dec 2001 13:40:27 +0000 Subject: [PATCH] Fixed potential (?) problem reported by Klaus (via Philippe) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1870 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/gettext.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/gettext.php b/functions/gettext.php index 2bbf221d..a1a4f26e 100644 --- a/functions/gettext.php +++ b/functions/gettext.php @@ -134,6 +134,9 @@ global $gettext_php_domain, $gettext_php_dir, $gettext_php_loaded, } $gettext_php_translateStrings[$key] = stripslashes($gettext_php_translateStrings[$key]); + // If there is no translation, just use the untranslated string + if ($gettext_php_translateStrings[$key] == '') + $gettext_php_translateStrings[$key] = $key; $key = ''; } } -- 2.25.1