Issue Bug Closed

#22483tslib_cObj::getTreeList() incorrectly checks cache entries

Dmitry Dulepov 04/19/10, 11:41 updated 08/12/10, 13:15

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)

Reviews 0

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