Project

General

Profile

Actions

Bug #42794

closed

Bug in class.tslib_content.php

Added by Mischa Heissmann about 12 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2012-11-08
Due date:
% Done:

0%

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

Description

Hi,

I was trying to get a list of pids using the method $this->cObj->getTreeList(). But nothing returned.
So I checked the class.tslib_content.php and recognized lines 7326ff

                $cacheEntry = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow(
                    'treelist',
                    'cache_treelist',
                    'md5hash = \'' . $requestHash . '\' AND ( expires > ' . $GLOBALS['EXEC_TIME'] .
                    ' OR expires = 0 )'
                );

                if (is_array($cacheEntry)) {
                        // cache hit
                    return $cacheEntry['treelist'];
                }

unfortunately $cacheEntry is always an array, but it's empty. So I could fix this issue by changing line 7333 into

if (is_array($cacheEntry) && !empty($cacheEntry['treelist'])) {

Bye,

Mischa.

Actions

Also available in: Atom PDF