This commit is contained in:
James Cole
2020-11-07 17:22:11 +01:00
parent 4fa92ed5f7
commit 647c9c5eb0
2 changed files with 3 additions and 4 deletions

View File

@@ -61,11 +61,10 @@ class HomeController extends Controller
$mainTitleIcon = 'fa-hand-spock-o';
$email = auth()->user()->email;
$pref = app('preferences')->get('remote_guard_alt_email', null);
if(null !== $pref) {
if(null !== $pref && is_string($pref->data)) {
$email = $pref->data;
}
Log::debug('Email is ', [$email]);
return view('admin.index', compact('title', 'mainTitleIcon','email'));
}