[BUGFIX] PHP 5.4 warning in CLI context in switch back user
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 1 Nov 2012 22:15:48 +0000 (23:15 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 1 Nov 2012 22:25:19 +0000 (23:25 +0100)
commitded3a6ee2d167fe568fa7a254f9782bde3aa8fc7
tree1c8df91236c574863567bd5c874e562d006e1579
parentc05e7593e3dc4156f73f7614bd27ac59fc2cfb54
[BUGFIX] PHP 5.4 warning in CLI context in switch back user

PHP 5.4 raises warnings of type "Illegal string offset" if you access
$foo['bar'] and $foo is no array. This is the case in hook
SwitchBackUser, if in cli context.

Change-Id: I5ed32e054b156c9fbc64e99ff33ba5c4637ce266
Fixes: #37578
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/16112
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/beuser/class.tx_beuser_switchbackuser.php