removing default_charset tests. code can be reused in main function and
[squirrelmail.git] / functions / decode / koi8_r.php
index ef2a16895f241c2d44a370d42731e117e2b62acb..3a1532e03c1f826fda0f4b149b780749ccdb5dba 100644 (file)
@@ -7,7 +7,7 @@
  *
  * This file contains koi8-r decoding function that is needed to read
  * koi8-r encoded mails in non-koi8-r locale.
- * 
+ *
  * Original data taken from:
  *  ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT
  *
  * @return string Decoded string
  */
 function charset_decode_koi8_r ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'koi8-r')
-        return $string;
-
     // don't do decoding when there are no 8bit symbols
     if (! sq_is8bit($string,'koi8-r'))
         return $string;