From 241969d97cc49e9125727189dae67175eb3d6ced Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Fri, 4 Jan 2008 02:42:28 +0000 Subject: [PATCH] Fixed PHP notice undefined index - $messageSet['alreadyLoggedIn'] git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47593 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Security.php b/security/Security.php index b532673db..536b06812 100644 --- a/security/Security.php +++ b/security/Security.php @@ -124,7 +124,7 @@ class Security extends Controller { if(Member::currentUserID()) { // user_error( 'PermFailure with member', E_USER_ERROR ); - $message = $messageSet['alreadyLoggedIn'] + $message = isset($messageSet['alreadyLoggedIn']) ? $messageSet['alreadyLoggedIn'] : $messageSet['default'];