set value returned by ini_get to boolean
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 10 Nov 2004 17:49:33 +0000 (17:49 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 10 Nov 2004 17:49:33 +0000 (17:49 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8362 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index eb213859732c79b0796ab89b0d126b7aa7e18989..ebd0118cf527716f86f436a399750cc6f9d2bb28 100644 (file)
@@ -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" );