Merge pull request #10611 from uberbrady/master

D'oh! Migration fails on empty settings table :(
This commit is contained in:
snipe 2022-02-03 20:07:01 -08:00 committed by GitHub
commit f4069e00cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,11 +14,12 @@ class BlankOutLdapActiveFlag extends Migration
*/ */
public function up() public function up()
{ {
$s = Setting::getSettings(); if ($s = Setting::getSettings()) {
$s->ldap_active_flag = ''; $s->ldap_active_flag = '';
$s->save(); $s->save();
}
} }
/** /**
* Reverse the migrations. * Reverse the migrations.
* *