Issue Bug Closed

#16458PHP 5 array merge error in t3lib_div line 538

Lucas_Birk 08/11/06, 10:03 updated 03/13/07, 15:33

Description

Direct Mail uncovers an array_merge() error when sending a Quick Mail if the PHP version is 5.
The error is not from the Direct Mail plugin but rather in t3lib_div.php on line 538.
PHP 5 only accepts parameters of the type array(). One possible solution would be to use typecasting by changing line 538 from:

00538 $outArr = array_merge($outArr,t3lib_div::breakLinesForEmail($lStr,$implChar,$charWidth));

to:

$outArr = array_merge($outArr,(array)t3lib_div::breakLinesForEmail($lStr,$implChar,$charWidth));

(issue imported from #M4021)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.