Project

General

Profile

Actions

Bug #25834

closed

sql_fetch_assoc can return an empty array

Added by Gabe Blair over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2011-04-07
Due date:
% Done:

100%

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

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

Actions

Also available in: Atom PDF