From 30ab2eec5f562df114357d19b60c1f5be408b8a0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 25 May 2018 10:10:02 +0200 Subject: [PATCH] Remove function_exists() checks for mbstring functions --- program/lib/Roundcube/bootstrap.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/program/lib/Roundcube/bootstrap.php b/program/lib/Roundcube/bootstrap.php index f42473d24..2bbce06a1 100644 --- a/program/lib/Roundcube/bootstrap.php +++ b/program/lib/Roundcube/bootstrap.php @@ -81,12 +81,8 @@ if (!defined('RCUBE_LOCALIZATION_DIR')) { } // set internal encoding for mbstring extension -if (function_exists('mb_internal_encoding')) { - mb_internal_encoding(RCUBE_CHARSET); -} -if (function_exists('mb_regex_encoding')) { - mb_regex_encoding(RCUBE_CHARSET); -} +mb_internal_encoding(RCUBE_CHARSET); +mb_regex_encoding(RCUBE_CHARSET); // make sure the Roundcube lib directory is in the include_path $rcube_path = realpath(RCUBE_LIB_DIR . '..');