diff --git a/ground/controllers/IndexController.php b/ground/controllers/IndexController.php index 38ac110..840a507 100644 --- a/ground/controllers/IndexController.php +++ b/ground/controllers/IndexController.php @@ -141,7 +141,7 @@ class IndexController extends Controller } App::userLogin($user); - App::redirect($_SERVER['HTTP_REFERER']); + App::redirect(isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:'/'); } static function actionSitemap()