Clean up ifs
This commit is contained in:
parent
acfb3ac3af
commit
bea7072f22
1 changed files with 4 additions and 9 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue