mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 53204 via svnmerge from
http://svn.silverstripe.com/open/modules/sapphire/branches/2.2.2 ........ r53204 | sharvey | 2008-04-22 15:55:34 +1200 (Tue, 22 Apr 2008) | 1 line MINOR: PHP notice fix - undefined variable ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@53529 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d8b65304d4
commit
14da70e64e
@ -39,6 +39,7 @@ class FieldSet extends DataObjectSet {
|
||||
$name = $field->Name();
|
||||
if(isset($list[$name])) {
|
||||
if($this->form) $errSuffix = " in your '{$this->form->class}' form called '" . $this->form->Name() . "'";
|
||||
else $errSuffix = '';
|
||||
user_error("collateDataFields() I noticed that a field called '$name' appears twice$errSuffix.", E_USER_ERROR);
|
||||
}
|
||||
$list[$name] = $field;
|
||||
|
Loading…
Reference in New Issue
Block a user