Issue Bug Closed

#16952Calling "DB Check" -> "Record Statistics" results in many SQL-related errors

Christian Brunner 02/07/07, 19:17 updated 03/13/07, 15:19

Description

When I call “DB Check” -> “Record Statistics” I get a lot of errors in t3lib/class.t3lib_db.php in lines around 800.

Reason:
The functions “sql_fetch_assoc()” and “sql_fetch_row()” don’t check, whether $res is a valid SQL Resource

I got these warnings on PHP Error Level E_ALL

I attached a diff-file that fixed the problem for me

I think this also affects Version 4.0.4 but i’m not sure

MySQL 5.0.22
(issue imported from #M4939)

Reviews 0

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