Project

General

Profile

Actions

Bug #49849

closed

Frontend timetracking - Do not try to pop an entry of a stack if it is empty

Added by Marcus Krause over 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2013-07-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

My log is flodded with

Core: Error handler (FE): PHP Warning: array_pop() expects parameter 1 to be array, null given in /path/to/t3lib/class.t3lib_timetrack.php line 177

The frontend timetracking tries to pop an entry of a stack even when the stack is empty.

Simple solution is to check the level of the stack first before doing operations on it.


Files

49849.diff (910 Bytes) 49849.diff Patch Marcus Krause, 2013-07-10 12:55
Actions

Also available in: Atom PDF