small fix

This commit is contained in:
Ralf Becker 2003-10-07 01:02:19 +00:00
parent e79069cd0d
commit cb01770f48

View File

@ -66,9 +66,9 @@
if ($this->mbstring = extension_loaded('mbstring') || @dl(PHP_SHLIB_PREFIX.'mbstring.'.PHP_SHLIB_SUFFIX)) if ($this->mbstring = extension_loaded('mbstring') || @dl(PHP_SHLIB_PREFIX.'mbstring.'.PHP_SHLIB_SUFFIX))
{ {
ini_set('mbstring.internal_encoding',$this->system_charset); ini_set('mbstring.internal_encoding',$this->system_charset);
if (ini_get('mbstring.func_overload') < 4) if (ini_get('mbstring.func_overload') < 7)
{ {
if ($warnings) echo "<p>Warning: Please set <b>mbstring.func_overload = 4</b> in your php.ini for useing <b>$this->system_charset</b> as your charset !!!</p>\n"; if ($warnings) echo "<p>Warning: Please set <b>mbstring.func_overload = 7</b> in your php.ini for useing <b>$this->system_charset</b> as your charset !!!</p>\n";
} }
} }
else else
@ -247,7 +247,7 @@
} }
if (!$to) if (!$to)
{ {
$to = $this->system_charset; $to = $this->charset();
} }
if ($from == $to || !$from || !$to) if ($from == $to || !$from || !$to)
{ {