mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: fixed notice level error
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101600 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b73ffd5f47
commit
28c0d8171b
@ -90,7 +90,7 @@ class ContentController extends Controller {
|
||||
|
||||
// If we've accessed the homepage as /home/, then we should redirect to /.
|
||||
if($this->dataRecord && $this->dataRecord instanceof SiteTree
|
||||
&& RootURLController::should_be_on_root($this->dataRecord) && !$this->urlParams['Action']
|
||||
&& RootURLController::should_be_on_root($this->dataRecord) && (!isset($this->urlParams['Action']) || !$this->urlParams['Action'] )
|
||||
&& !$_POST && !$_FILES && !Director::redirected_to() ) {
|
||||
$getVars = $_GET;
|
||||
unset($getVars['url']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user