[BUGFIX] Restore registers before early returns 80/28280/3
authorJo Hasenau <info@cybercraft.de>
Tue, 11 Mar 2014 22:34:04 +0000 (23:34 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 13 May 2014 17:32:25 +0000 (19:32 +0200)
commitdd146826cb02149c145dcfc2de47b317d3fa21f8
tree9fa837afd840b93f6f24d6fc3e979d2bf9ea3327
parent88746ec27aa590b7fcefb48a2e00ead3ea5bbd06
[BUGFIX] Restore registers before early returns

Having an empty image list or a list of images with empty values
will not restore the loaded registers.
So we must restore the registers before any return.

Additionally, the $conf array does not need to contain any
values when calling RESTORE_REGISTER, since it won't handle
parameters anyway, so parameters would just waste memory.

Resolves: #56796
Releases: 6.2
Change-Id: I3e81c614b5c37a14da4b97e18a310e202ae7b766
Reviewed-on: https://review.typo3.org/28280
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/css_styled_content/Classes/Controller/CssStyledContentController.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php