Actions
Bug #19703
closedFalse initialization in TYPO3 basket function record_registration() in class.tslib_feuserauth.php
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)
Actions