Project

General

Profile

Actions

Bug #20147

closed

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

Added by Falk Kühnel over 15 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-03-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Actions

Also available in: Atom PDF