From c6dc670cff9e8f02730e205804915c67e74f218a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 14 Sep 2007 19:20:03 +0000 Subject: [PATCH] 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 --- security/Security.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/Security.php b/security/Security.php index 21d9dda75..414fc6351 100644 --- a/security/Security.php +++ b/security/Security.php @@ -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']