[TYPO3-core] RFC: bug 4367: Reset recs with clear_all should reset as array, not as string
Christian Kuhn
lolli at schwarzbu.ch
Tue Feb 24 17:33:29 CET 2009
This is an SVN patch request.
Type: bug
Bugtracker references:
http://bugs.typo3.org/view.php?id=4367
Branches: trunk, 4.2-branch
Problem:
The FE User Auth class has the possibility to automatically store form
values in the session if they are submitted in the recs array. There is
a switch in the record_registration() function to reset this array if
"recs[clear_all]" is submitted. If you then fill the recs again a fatal
error is thrown "cannot use string offset in an array".
Solution:
Reinitialize recs as empty array and not as empty string if
recs['clear_all'] is set.
Notes:
Code documentation always talks of recs as an array:
Line 129: - 'recs': Array ... Structure:
[recs][tablename][record_uid]=number
Regards
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4367_v1.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090224/9bd865b6/attachment.txt
More information about the TYPO3-team-core
mailing list