mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Merge pull request #10611 from uberbrady/master
D'oh! Migration fails on empty settings table :(
This commit is contained in:
commit
f4069e00cd
|
@ -14,11 +14,12 @@ class BlankOutLdapActiveFlag extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
$s = Setting::getSettings();
|
||||
$s->ldap_active_flag = '';
|
||||
$s->save();
|
||||
if ($s = Setting::getSettings()) {
|
||||
$s->ldap_active_flag = '';
|
||||
$s->save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue