From 5a4689fbd25ea129a960c93043b6671805a6210f Mon Sep 17 00:00:00 2001 From: tokul Date: Wed, 10 Nov 2004 17:49:33 +0000 Subject: [PATCH] set value returned by ini_get to boolean git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8362 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/i18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/i18n.php b/functions/i18n.php index eb213859..ebd0118c 100644 --- a/functions/i18n.php +++ b/functions/i18n.php @@ -294,7 +294,7 @@ function set_up_language($sm_language, $do_search = false, $default = false) { } else { $longlocale=$sm_notAlias; } - if ( !ini_get('safe_mode') && + if ( !((bool)ini_get('safe_mode')) && getenv( 'LC_ALL' ) != $longlocale ) { putenv( "LC_ALL=$longlocale" ); putenv( "LANG=$longlocale" ); -- 2.25.1