ENHANCEMENT Using safer get_by_id() call in SecurityAdmin->getMemberForm()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65027 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-01 13:55:23 +00:00
parent fa2a2df551
commit dbcd2f6c2b

View File

@ -114,7 +114,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
}
public function getMemberForm($id) {
if($id && $id != 'new') $record = DataObject::get_one("Member", "`Member`.ID = $id");
if($id && $id != 'new') $record = DataObject::get_by_id("Member",$id);
if($record || $id == 'new') {
$fields = new FieldSet(
new HiddenField('MemberListBaseGroup', '', $this->currentPageID() )