Skip to content

Commit b133c47

Browse files
committed
Fix syntax error
1 parent e3d45a6 commit b133c47

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.TXT

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
6.6.2 (2022-12-17)
2+
- Ensure pregSplit return type is always array.
3+
14
6.6.1 (2022-12-12)
25
- Add PHPStan and fix level 1 errors (#307)
36

include/tcpdf_static.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,7 @@ public static function pregSplit($pattern, $modifiers, $subject, $limit=NULL, $f
17771777
// the bug only happens on PHP 5.2 when using the u modifier
17781778
if ((strpos($modifiers, 'u') === FALSE) OR (count(preg_split('//u', "\n\t", -1, PREG_SPLIT_NO_EMPTY)) == 2)) {
17791779
$ret = preg_split($pattern.$modifiers, $subject, $limit, $flags);
1780-
if $ret === false {
1780+
if ($ret === false) {
17811781
return array();
17821782
}
17831783
return $ret;

0 commit comments

Comments
 (0)