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
This commit is contained in:
Ingo Schommer 2007-09-15 20:11:06 +00:00
parent d5d2006980
commit eb73802bcd

View File

@ -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'] : '';