#22483tslib_cObj::getTreeList() incorrectly checks cache entries
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.