Review main Merged

16108[BUGFIX] PHP 5.4 warning in CLI context in switch back user

Christian Kuhn CR +2 V +2 Easy +18 −25 updated 06/03/13, 20:49

Commit message

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.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Files 4