mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
mlanthaler: Bugfix: Member::logout() is not a static method!
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41791 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6f21a7cea9
commit
c6dc670cff
@ -61,7 +61,8 @@ class Security extends Controller {
|
||||
? $messageSet['alreadyLoggedIn']
|
||||
: $messageSet['default'];
|
||||
|
||||
Member::logout();
|
||||
if($member = Member::currentUser())
|
||||
$member->logout();
|
||||
|
||||
} else if(substr(Director::history(),0,15) == 'Security/logout') {
|
||||
$message = $messageSet['logInAgain']
|
||||
|
Loading…
Reference in New Issue
Block a user