Project

General

Profile

Actions

Bug #19703

closed

False initialization in TYPO3 basket function record_registration() in class.tslib_feuserauth.php

Added by Thomas Loeffler almost 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2008-12-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Using the built-in TYPO3 basket functionality with the function record_registration() in the file class.tslib_feuserauth.php on line 462, causes an fatal PHP error after following situation:

- Putting some items into the basket with "recs[table][uid]"
- Clearing the basket with "recs[clear_all]"
- Putting one item into the basket again will cause PHP error: "cannot use string offset in an array"

Change the lines:
if ($recs['clear_all']) {
$this->setKey('ses','recs','');
}

to:

if ($recs['clear_all']) {
$this->setKey('ses','recs',array());
}

(issue imported from #M9949)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16637: recs['clear_all'] should be clear as an arrayClosedChristian Kuhn2006-10-11

Actions
Actions

Also available in: Atom PDF