[BUGFIX] Show backend user in record info popup 39/40039/2
authorMarkus Klein <markus.klein@typo3.org>
Fri, 5 Jun 2015 23:19:05 +0000 (01:19 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 6 Jun 2015 10:11:01 +0000 (12:11 +0200)
This solves a regression to #55699.

Resolves: #67309
Releases: master, 6.2
Change-Id: Ia1c3f0efe871ba2742029883e7fcc919e3145ae9
Reviewed-on: http://review.typo3.org/40039
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php

index 505ea6e..81972cf 100644 (file)
@@ -361,10 +361,10 @@ class ElementInformationController {
                        // show the backend username who created the issue
                        if ($name === 'cruser_id' && $rowValue) {
                                $userTemp = $this->getDatabaseConnection()->exec_SELECTgetSingleRow('username, realName', 'be_users', 'uid = ' . (int)$rowValue);
-                               if ($userTemp[0]['username'] !== '') {
-                                       $rowValue = $userTemp[0]['username'];
-                                       if ($userTemp[0]['realName'] !== '') {
-                                               $rowValue .= ' - ' . $userTemp[0]['realName'];
+                               if ($userTemp['username'] !== '') {
+                                       $rowValue = $userTemp['username'];
+                                       if ($userTemp['realName'] !== '') {
+                                               $rowValue .= ' - ' . $userTemp['realName'];
                                        }
                                }
                        }