[BUGFIX] Prevent reset of user settings in getFromDottedNotation() 63/48563/2
authorDaniel Goerz <ervaude@gmail.com>
Wed, 1 Jun 2016 08:34:55 +0000 (10:34 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Mon, 13 Jun 2016 08:53:56 +0000 (10:53 +0200)
Change-Id: Idd9bd02e81ffb5b3ed02f5bf47d6fa3a9be7cdbd
Resolves: #76406
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/48563
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Controller/UserSettingsController.php

index c1fe027..9de51f4 100644 (file)
@@ -202,10 +202,10 @@ class UserSettingsController
     protected function getFromDottedNotation($key)
     {
         $subkeys = GeneralUtility::trimExplode('.', $key);
-        $array = &$this->getBackendUser()->uc;
+        $array = $this->getBackendUser()->uc;
         foreach ($subkeys as $subkey) {
             if (isset($array[$subkey])) {
-                $array =  &$array[$subkey];
+                $array = &$array[$subkey];
             } else {
                 $array = [];
                 break;