Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX: Fix notice-level error in rewriteless operation of homepage w…

…hen db needs to be created

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@73099 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit eeb07e221f458d8d138ad38b5c6f93c887f944bd 1 parent 842ae9f
@sminnee sminnee authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  core/control/ModelAsController.php
View
3  core/control/ModelAsController.php
@@ -17,7 +17,8 @@ public function handleRequest($request) {
// If the basic database hasn't been created, then build it.
if(!DB::isActive() || !ClassInfo::hasTable('SiteTree')) {
$this->response = new HTTPResponse();
- $this->redirect("dev/build?returnURL=" . urlencode($_GET['url']));
+ $this->redirect("dev/build?returnURL=" . (isset($_GET['url']) ? urlencode($_GET['url']) : ''));
+ $this->popCurrent();
return $this->response;
}
Please sign in to comment.
Something went wrong with that request. Please try again.