mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
7a9dd25b9c
commit
0b0e4c32d9
@ -744,7 +744,7 @@ class Member extends DataObject {
|
|||||||
public function map($filter = "", $sort = "", $blank="") {
|
public function map($filter = "", $sort = "", $blank="") {
|
||||||
$ret = new SQLMap(singleton('Member')->extendedSQL($filter, $sort));
|
$ret = new SQLMap(singleton('Member')->extendedSQL($filter, $sort));
|
||||||
if($blank) {
|
if($blank) {
|
||||||
$blankMember = new Member();
|
$blankMember = Object::create('Member');
|
||||||
$blankMember->Surname = $blank;
|
$blankMember->Surname = $blank;
|
||||||
$blankMember->ID = 0;
|
$blankMember->ID = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user