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
This commit is contained in:
Sean Harvey 2008-01-04 02:42:28 +00:00
parent 2ef6925cd1
commit 241969d97c

View File

@ -124,7 +124,7 @@ class Security extends Controller {
if(Member::currentUserID()) { if(Member::currentUserID()) {
// user_error( 'PermFailure with member', E_USER_ERROR ); // user_error( 'PermFailure with member', E_USER_ERROR );
$message = $messageSet['alreadyLoggedIn'] $message = isset($messageSet['alreadyLoggedIn'])
? $messageSet['alreadyLoggedIn'] ? $messageSet['alreadyLoggedIn']
: $messageSet['default']; : $messageSet['default'];