mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Clean up ifs
This commit is contained in:
parent
acfb3ac3af
commit
bea7072f22
@ -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…
x
Reference in New Issue
Block a user