From d92b02a9b092b37f9d0f8416353196556f2b91af Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 10 Jan 2008 23:45:26 +0000 Subject: [PATCH] simon_w: #2098: Fixed notice level error git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@47869 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/PageTypes/UserDefinedForm.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/PageTypes/UserDefinedForm.php b/code/PageTypes/UserDefinedForm.php index 7c81a897..84b26120 100755 --- a/code/PageTypes/UserDefinedForm.php +++ b/code/PageTypes/UserDefinedForm.php @@ -188,6 +188,10 @@ class UserDefinedForm_Controller extends Page_Controller { $required[] = $field->Name; } + if(!isset($_SERVER['HTTP_REFERER'])) { + $_SERVER['HTTP_REFERER'] = ""; + } + $fields->push( new HiddenField( "Referrer", "", $_SERVER['HTTP_REFERER'] ) ); // Build actions