[BUGFIX] Prevent warning on user settings reset 66/44666/4
authorNicole Cordes <typo3@cordes.co>
Tue, 10 Nov 2015 13:41:27 +0000 (14:41 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 13 Nov 2015 07:40:38 +0000 (08:40 +0100)
commita80b5c04bcc07beb6d62901faa01ae11b2ceda36
tree31a97dd8a40b2f7accb9df175cf690b89ad992b6
parent18f1591302e614a8424fcb0061ef162f8b7c9ff7
[BUGFIX] Prevent warning on user settings reset

This patch adds an access check to array access and initializes
an empty state object if no configuration is found.

Resolves: #71315
Releases: master
Change-Id: I27aff6654939cee754d2aed008146a437a37762a
Reviewed-on: https://review.typo3.org/44666
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Controller/UserSettingsController.php
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeCommands.php