From 9a2e5a3053e6e42d87d77a2d960c3066ac271521 Mon Sep 17 00:00:00 2001 From: vChabot Date: Tue, 7 Feb 2012 08:50:07 +0000 Subject: [PATCH] // fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13054 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Tools.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; } }