mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: PHP notice fix - undefined variable
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@53197 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6aaec39afa
commit
b9aaed37f5
@ -31,6 +31,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