From b9aaed37f517aa5e4e2316ffcb3c28bbf0ea6d39 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 22 Apr 2008 03:55:34 +0000 Subject: [PATCH] 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 --- forms/FieldSet.php | 1 + 1 file changed, 1 insertion(+) diff --git a/forms/FieldSet.php b/forms/FieldSet.php index f3d1f3dea..3c81d3516 100755 --- a/forms/FieldSet.php +++ b/forms/FieldSet.php @@ -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;