Project

General

Profile

Actions

Bug #22483

closed

tslib_cObj::getTreeList() incorrectly checks cache entries

Added by Dmitry Dulepov over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

14149.diff (888 Bytes) 14149.diff Administrator Admin, 2010-04-19 11:45

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #19621: getTreeList causes duplicate entry sql errorClosedRupert Germann2008-11-18

Actions
Actions #1

Updated by Dmitry Dulepov over 14 years ago

revisions 7408 and 7409.

Actions

Also available in: Atom PDF