Actions
Bug #22483
closedtslib_cObj::getTreeList() incorrectly checks cache entries
Start date:
2010-04-19
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The function fetches cache data and checks if the first row's "treelist" field is not empty. It does not check if there were any rows at all. There are two problems with this approach: (1) using non–existing array in many cases and (2) doing unnecessary queries if there are no subpages of the page.
The fix would simply check if rows are returned.
(issue imported from #M14149)
Files
Actions