mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
If the settings table is empty, set a default
This commit is contained in:
parent
a306574751
commit
753a7333f1
|
@ -25,7 +25,7 @@ class CheckLocale
|
|||
\App::setLocale($request->user()->locale);
|
||||
|
||||
// App setting preference
|
||||
} elseif (\App\Models\Setting::getSettings()->locale!='') {
|
||||
} elseif ((\App\Models\Setting::getSettings()) && (\App\Models\Setting::getSettings()->locale!='')) {
|
||||
\App::setLocale(\App\Models\Setting::getSettings()->locale);
|
||||
|
||||
// Default app setting
|
||||
|
|
Loading…
Reference in a new issue