Issue Bug Closed

#19306Return value of debug_check_recordset is not used

Stefan Precht 09/09/08, 12:13 updated 10/02/18, 12:29

Description

Within class.t3lib_db.php the method debug_check_recordset is used sometimes to check if a variable is a valid mysql resultset. This is done to avoid php warning messages.

Unfortunately the return value of this metod is not used…

The Method should be the statement of an if condition to use the return value of the validation.

If your TYPO3 installation is configured to display PHP Warnings, you get a lot message because of this failed validation.

My test system where I encounter this problem:
- TYPO3 Version 4.2.1
- Apache 2.0.59
- PHP 5.2.5
- MySQL 4.1.21

The file attached is from an TYPO3 Version as described above with this Issue fixed.
(issue imported from #M9316)

Reviews 0

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