diff --git a/common/autoload.php b/common/autoload.php index 2c39b1707..d1af61d90 100644 --- a/common/autoload.php +++ b/common/autoload.php @@ -32,12 +32,9 @@ date_default_timezone_set(@date_default_timezone_get()); * Set the default character encoding. */ ini_set('default_charset', 'UTF-8'); -if (function_exists('mb_internal_encoding')) +if (function_exists('mb_internal_encoding') && function_exists('mb_regex_encoding')) { mb_internal_encoding('UTF-8'); -} -if (function_exists('mb_regex_encoding')) -{ mb_regex_encoding('UTF-8'); }