Issue Bug Closed

#20147typo3ajax->addContent doe not add boolean content with "false" content

Falk Kühnel 03/09/09, 09:25 updated 09/09/13, 10:52

Description

When doing the following:

$ajaxObj->addContent(‘success’, false);

Only an empty array gets returned.

Patch is included, but the return mechanism of the old value might be misleading if the former value was actually a boolean false.

change line 117 in class.typo3ajax.php to:
if (!isset($content) || (!strlen($content) && $content !== false)) {
(issue imported from #M10640)

Reviews 0

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