From 849fb5a97fac54fdeb4bb8fbae3f365d95901abf Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sun, 23 Nov 2014 17:50:15 +0300 Subject: [PATCH] FIX - login on iPad --- ground/controllers/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()