removing default_charset tests. code can be reused in main function and
[squirrelmail.git] / functions / decode / koi8_r.php
index 6da341254443750a3a5b4296c9c3debbe84fd917..3a1532e03c1f826fda0f4b149b780749ccdb5dba 100644 (file)
  * @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;