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
This commit is contained in:
Sam Minnee 2008-01-10 23:45:26 +00:00
parent 1dea06a698
commit d92b02a9b0

View File

@ -188,6 +188,10 @@ class UserDefinedForm_Controller extends Page_Controller {
$required[] = $field->Name; $required[] = $field->Name;
} }
if(!isset($_SERVER['HTTP_REFERER'])) {
$_SERVER['HTTP_REFERER'] = "";
}
$fields->push( new HiddenField( "Referrer", "", $_SERVER['HTTP_REFERER'] ) ); $fields->push( new HiddenField( "Referrer", "", $_SERVER['HTTP_REFERER'] ) );
// Build actions // Build actions