diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 185200e8..773f3ccb 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -102,7 +102,7 @@ class Index extends Backend $this->redirect($url); } $background = Config::get('fastadmin.login_background'); - $background = stripos($background, 'http') === 0 ? $background : config('site.cdnurl') . $background; + $background = $background ? (stripos($background, 'http') === 0 ? $background : config('site.cdnurl') . $background) : ''; $this->view->assign('background', $background); $this->view->assign('title', __('Login')); Hook::listen("admin_login_init", $this->request); diff --git a/application/admin/view/index/login.html b/application/admin/view/index/login.html index 32f47119..e5b2ff19 100644 --- a/application/admin/view/index/login.html +++ b/application/admin/view/index/login.html @@ -6,20 +6,17 @@