Permalink
Browse files

Fixed notice level error

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@50040 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent f7474bf commit f640e1224220634983295d92e5a5245ec8cd6183 @sminnee sminnee committed Feb 22, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 code/PageTypes/UserDefinedForm.php
@@ -192,8 +192,9 @@ function Form() {
$_SERVER['HTTP_REFERER'] = "";
}
- $fields->push( new HiddenField( "Referrer", "", $_SERVER['HTTP_REFERER'] ) );
-
+ $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
+ $fields->push( new HiddenField( "Referrer", "", $referer ) );
+
// Build actions
$actions = new FieldSet(
new FormAction( "process", $this->SubmitButtonText )

0 comments on commit f640e12

Please sign in to comment.