Issue Bug Closed

#22101Limit positive values in Rootline to current page

Stefan Froemken 02/10/10, 10:07 updated 08/18/10, 00:48

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.