- fixed error in iso-8859-2 handling function in function/i18n.php.
[squirrelmail.git] / functions / i18n.php
index 20c4e535b0aea2d97d62dc72fd1eb1dda1cc5166..2b7d5f40659b980fa8a275a21274aa6aeca98563 100644 (file)
@@ -58,9 +58,9 @@
       if (ereg("iso-8859-(.*)", $charset, $res)) {
          if ($res[1] == "1")
             return charset_decode_iso_8859_1 ($string);
-         if ($res[1] == "2")
+         else if ($res[1] == "2")
             return charset_decode_iso_8859_2 ($string);
-         if ($res[1] == "7")
+         else if ($res[1] == "7")
             return charset_decode_iso_8859_7 ($string);
          else if ($res[1] == "15")
             return charset_decode_iso_8859_15 ($string);
    function charset_decode_iso_8859_2 ($string) {
       global $default_charset;
 
-      if (strtolower($default_charset) == "iso-8859-7") {
+      if (strtolower($default_charset) == "iso-8859-2") {
          return $string;
       } else {
          // Only do the slow convert if there are 8-bit characters