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:
Ingo Schommer 2007-09-14 19:20:03 +00:00
parent 6f21a7cea9
commit c6dc670cff

View File

@ -61,7 +61,8 @@ class Security extends Controller {
? $messageSet['alreadyLoggedIn'] ? $messageSet['alreadyLoggedIn']
: $messageSet['default']; : $messageSet['default'];
Member::logout(); if($member = Member::currentUser())
$member->logout();
} else if(substr(Director::history(),0,15) == 'Security/logout') { } else if(substr(Director::history(),0,15) == 'Security/logout') {
$message = $messageSet['logInAgain'] $message = $messageSet['logInAgain']