If the settings table is empty, set a default

This commit is contained in:
snipe 2016-03-25 05:39:08 -07:00
parent a306574751
commit 753a7333f1

View file

@ -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