diff --git a/classes/Tools.php b/classes/Tools.php index aa664b812..5054a5880 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -2204,14 +2204,12 @@ FileETag INode MTime Size */ public static function checkPCREUTF8() { - if (!function_exists('preg_match')) - return false; - + $return = true; $regexd = preg_replace('/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-'); if ($regexd != '--') - return false; + $return = false; - return true; + return $return; } }