From eb73802bcd28e2a481e6da54b71b6dcb043b7191 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 20:11:06 +0000 Subject: [PATCH] mlanthaler: Bugfix: Added isset() to prevent E_NOTICE error. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41916 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/MemberTableField.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/MemberTableField.php b/code/MemberTableField.php index d94a536c..98347639 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -146,7 +146,9 @@ class MemberTableField extends ComplexTableField { } function DetailForm() { - $ID = Convert::raw2xml($_REQUEST['ctf']['ID']); + $ID = Convert::raw2xml(isset($_REQUEST['ctf']['ID']) + ? $_REQUEST['ctf']['ID'] + : ''); $childID = isset($_REQUEST['ctf']['childID']) ? Convert::raw2xml($_REQUEST['ctf']['childID']) : 0; $childClass = Convert::raw2xml($_REQUEST['fieldName']); $methodName = isset($_REQUEST['methodName']) ? $_REQUEST['methodName'] : '';