[BUGFIX] Fix PHP warning when writing to Backend user log 16/23116/4
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:03:04 +0000 (22:03 +0200)
commitf36574c7a975e93c3a1faf9f3fcace280cda71a8
tree6d2071e98dfbe6b2275618c84f3ec15637164214
parent807b591916c22cb7703f00ff27d330232bfa204e
[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
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php