mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-04-20 22:12:32 +02:00
Fix syntax error
This commit is contained in:
parent
e3d45a6853
commit
b133c47e93
@ -1,3 +1,6 @@
|
||||
6.6.2 (2022-12-17)
|
||||
- Ensure pregSplit return type is always array.
|
||||
|
||||
6.6.1 (2022-12-12)
|
||||
- Add PHPStan and fix level 1 errors (#307)
|
||||
|
||||
|
@ -1777,7 +1777,7 @@ class TCPDF_STATIC {
|
||||
// the bug only happens on PHP 5.2 when using the u modifier
|
||||
if ((strpos($modifiers, 'u') === FALSE) OR (count(preg_split('//u', "\n\t", -1, PREG_SPLIT_NO_EMPTY)) == 2)) {
|
||||
$ret = preg_split($pattern.$modifiers, $subject, $limit, $flags);
|
||||
if $ret === false {
|
||||
if ($ret === false) {
|
||||
return array();
|
||||
}
|
||||
return $ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user