Issue Bug Closed

#21455PHP-5.3 Warning: strlen() expects parameter 1 to be string, array given

Rupert Germann 11/04/09, 20:15 updated 08/06/10, 13:30

Description

Problem:
When running TYPO3 4.3 under PHP 5.3 the error_log is filled with messages like this:
PHP Warning: strlen() expects parameter 1 to be string, array given in C:\xampp\xampp\htdocs\typo3\dummy-4.2.9\typo3\classes\class.typo3ajax.php line 119
reason for this is that json encoded content is handled as array and not as string.

Solution:
use empty() to find out if $content is an empty array or empty string

(issue imported from #M12466)

Reviews 0

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