[BUGFIX] Fix PHP warning when writing to Backend user log 16/23916/2
authorAlexander Stehlik <alexander.stehlik@googlemail.com>
Thu, 15 Aug 2013 16:05:10 +0000 (18:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 19 Sep 2013 20:04:10 +0000 (22:04 +0200)
commit9423c2cf034002dd2995815c31ebc0db1c7d8bd3
treeca596adeadd264e00b39570f771bc8ced98a6bc3
parentfd534b6aa3cdb45509f83f816b5e58730fcb67e0
[BUGFIX] Fix PHP warning when writing to Backend user log

The writelog method for the BackendUserAuthentication object is now
checking if there is actually an uid available in the user array
before it tries to access it.

This prevents a PHP warning about an illegal string offset when writing
log messages in an authentication service.

Releases: 6.0, 6.1, 6.2
Resolves: #49328
Change-Id: I006c6b0ccd8f03292715a7d7ab8e457914637d93
Reviewed-on: https://review.typo3.org/23116
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
(cherry picked from commit f36574c7a975e93c3a1faf9f3fcace280cda71a8)
Reviewed-on: https://review.typo3.org/23916
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php