# check current configuration and set default variables accordingly, so that
# kivitendo's behaviour isn't changed by this update
- # if checks are not set in config set it to true
+ # if checks are not set in config leave it to the default value
foreach my $check (qw(webdav vertreter parts_show_image parts_listing_image)) {
my $check_set = $::lx_office_conf{features}->{$check} ? 1 : 0;
- $self->db_query("UPDATE defaults SET $check = ?", bind => [ $check_set ]);
+ $self->db_query("UPDATE defaults SET $check = ?", bind => [ $check_set ]) if $check_set;
}
my $update_column = "UPDATE defaults SET parts_image_css = ?";