BUGFIX: Ticket #2455 - Check variable exists before accessing Password index

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@53156 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-04-21 23:57:04 +00:00
parent 0a124ec302
commit 3f50c7a477

View File

@ -449,7 +449,7 @@ class Member extends DataObject {
}
if(Director::isLive() &&
$this->changed['Password'] && $this->record['Password'] &&
isset($this->changed['Password']) && $this->changed['Password'] && $this->record['Password'] &&
Member::$notify_password_change) $this->sendInfo('changePassword');
if(isset($this->changed['Password']) && $this->changed['Password']) {