simple fix of a sorta-bug. Did a check for function bindtextdomain().
[squirrelmail.git] / functions / imap_general.php
index 67fe8b7..6e1b80a 100755 (executable)
                   $squirrelmail_language = substr($HTTP_ACCEPT_LANGUAGE, 0, 2);
                }
                
-               if (isset($squirrelmail_language)) {
+               if (isset($squirrelmail_language) && function_exists("bindtextdomain")) {
                   if ($squirrelmail_language != "en" && $squirrelmail_language != "") {
                      putenv("LC_ALL=".$squirrelmail_language);
                      bindtextdomain("squirrelmail", "../locale/");