Project

General

Profile

Actions

Bug #19703

closed

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

Added by Thomas Loeffler over 15 years ago. Updated over 5 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 #1

Updated by Christian Kuhn about 15 years ago

Resolved as duplicate of #16637

Actions #2

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF