Bug in String.php

In function IsUTF8
This commit is contained in:
chamaeleon-nitr 2014-11-10 17:43:16 +03:00
parent 37b4d18d45
commit 832421bbca
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ class PHPExcel_Shared_String
* @return boolean
*/
public static function IsUTF8($value = '') {
return $string === '' || preg_match('/^./su', $string) === 1;
return $value === '' || preg_match('/^./su', $value) === 1;
}
/**