Issue Bug Closed

#25834sql_fetch_assoc can return an empty array

Gabe Blair 04/07/11, 20:08 updated 10/02/18, 12:20

Description

It is possible for ux_t3lib_DB::sql_fetch_assoc() to return an empty array in DBAL. This is a problem, for example, in t3lib_pageSelect::getWorkspaceVersionOfRecord(), because is_array() alone is checked on a result row (returning false positives in the case that the row is an empty array) to see if a record has an offline version.

I’ll submit a patch to Gerrit for this one – it’s my first attempt at contributing here, so please go easy on me!

Thanks

Reviews 0

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