From 0b0e4c32d98193cfaf6c388c4355196e89cecca2 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 10 Jul 2008 23:52:08 +0000 Subject: [PATCH] MINOR: #2633 - Member::map() uses object::create instead of new git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@57775 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Member.php b/security/Member.php index e4459ede2..fe17ed694 100644 --- a/security/Member.php +++ b/security/Member.php @@ -744,7 +744,7 @@ class Member extends DataObject { public function map($filter = "", $sort = "", $blank="") { $ret = new SQLMap(singleton('Member')->extendedSQL($filter, $sort)); if($blank) { - $blankMember = new Member(); + $blankMember = Object::create('Member'); $blankMember->Surname = $blank; $blankMember->ID = 0;