Trac 2300 / 2301 zweiter Versuch
[kivitendo-erp.git] / sql / Pg-upgrade2 / defaults_feature.pl
index c46ff3a..2e13982 100644 (file)
@@ -21,10 +21,10 @@ sub run {
 
   # 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 = ?";