use fallback for default settings
This commit is contained in:
@ -435,7 +435,7 @@ class Invoices extends Controller
|
||||
$currency = Currency::where('code', $currency_code)->first();
|
||||
|
||||
if (empty($currency)) {
|
||||
$currency = Currency::where('code', setting('default.currency', 'USD'))->first();
|
||||
$currency = Currency::where('code', setting('default.currency'))->first();
|
||||
}
|
||||
|
||||
if ($currency) {
|
||||
|
Reference in New Issue
Block a user