#22101Limit positive values in Rootline to current page
Description
In class.tslib_content.php you have a function called getKey. We have a rootline with 5 pages. Look at following TS:
10 = TEXT
10.data = LEVELTITLE:-12
In this example you always get back the title of rootpage.
10 = TEXT
10.data = LEVELTITLE:12
But if $key is oversized positive you get back an empty pagetitle. Maybe you can insert something like:
if(count($arr) <= $key) {
$key = count($arr) – 1;
}
(issue imported from #M13496)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.