From: fidian Date: Thu, 20 Dec 2001 13:40:27 +0000 (+0000) Subject: Fixed potential (?) problem reported by Klaus (via Philippe) X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=1e45dcf6fb405a0e7b495847e889a54d935f9491 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 --- 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 = ''; } }