mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
1dea06a698
commit
d92b02a9b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user