Clean up ifs

This commit is contained in:
David Bomba 2021-08-09 08:59:28 +10:00
parent acfb3ac3af
commit bea7072f22

View File

@ -730,16 +730,11 @@ class BaseController extends Controller
$data = [];
if (Ninja::isSelfHost()) {
$data['report_errors'] = $account->report_errors;
} else {
$data['report_errors'] = true;
}
//pass report errors bool to front end
$data['report_errors'] = Ninja::isSelfHost() ? $account->report_errors : true;
$data['rc'] = '';
if(request()->has('rc'))
$data['rc'] = request()->input('rc');
//pass referral code to front end
$data['rc'] = request()->has('rc') ? request()->input('rc') : '';
$this->buildCache();