From 55f0ddd3ff40aa4cb2552dfce4ab7e8e37488155 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 12 Aug 2007 22:47:31 +0000 Subject: [PATCH] Fix php notices git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39881 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/ComplexTableField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php index fca82d7f5..2ac077289 100755 --- a/forms/ComplexTableField.php +++ b/forms/ComplexTableField.php @@ -209,10 +209,10 @@ JS; function DetailForm() { // Get all the requests - $ID = Convert::raw2xml($_REQUEST['ctf']['ID']); + $ID = isset($_REQUEST['ctf']['ID']) ? Convert::raw2xml($_REQUEST['ctf']['ID']) : null; $childID = Convert::raw2xml($_REQUEST['ctf']['childID']); $childClass = Convert::raw2xml($_REQUEST['fieldName']); - $this->methodName = $_REQUEST['methodName']; + $this->methodName = isset($_REQUEST['methodName']) ? $_REQUEST['methodName'] : null; // used to discover fields if requested and for population of field if(is_numeric($childID)) {