[BUGFIX] PHP 5.4 warning in CLI context in switch back user
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 1 Nov 2012 21:24:02 +0000 (22:24 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 1 Nov 2012 21:45:12 +0000 (22:45 +0100)
commit4882e9c42afe5472233c77e2a7076ea28147ffba
tree3ee1c5b4f9bfe2cd66d07e6ed86b3efb3425e0b9
parent07d76b5aa041d98abab06ac6b0e0a9d320bcc644
[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.

Furthermore, the class is cleaned up a bit in 6.0 version and the
compatibility layer is removed, since the hook file was moved around
together with the beuser refactoring anyway.

Change-Id: I5ed32e054b156c9fbc64e99ff33ba5c4637ce266
Fixes: #37578
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/16108
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/beuser/Classes/Hook/SwitchBackUserHook.php
typo3/sysext/beuser/Classes/class.tx_beuser_switchbackuser.php [deleted file]
typo3/sysext/beuser/ext_autoload.php [deleted file]
typo3/sysext/core/Migrations/Code/LegacyClassesForIde.php