mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Check for a value for settings (this mostly matters in tests)
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
98e6f7e14c
commit
70b8b7e4be
|
@ -20,7 +20,7 @@ class FixLanguageDirs extends Migration
|
|||
* Update the settings table
|
||||
*/
|
||||
$settings = Setting::getSettings();
|
||||
if ($settings->locale != '') {
|
||||
if (($settings) && ($settings->locale != '')) {
|
||||
DB::table('settings')->update(['locale' => Helper::mapLegacyLocale($settings->locale)]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue