[TYPO3-core] RFC: bug 4367: Reset recs with clear_all should reset as array, not as string

Susanne Moog typo3 at susannemoog.de
Sat Feb 28 11:20:52 CET 2009


Christian Kuhn schrieb:
> 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
> 

+1 by reading and testing,

Susanne


More information about the TYPO3-team-core mailing list