Project

General

Profile

Actions

Bug #22101

closed

Limit positive values in Rootline to current page

Added by Stefan Froemken about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Communication
Target version:
-
Start date:
2010-02-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF