X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FUser.pm;h=a49b3b5c6d3332942090814e530b474ae2bb3d2f;hb=0ade2438400535b4b5d969244ff1b23daddaf3fb;hp=487236800cdf8c016cd2a7d3fc05e80cc3020ea5;hpb=14c1b704816c9dcfebca1d0bf9fd0e2fc2d253e4;p=kivitendo-erp.git diff --git a/SL/User.pm b/SL/User.pm index 487236800..a49b3b5c6 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -971,6 +971,11 @@ sub create_employee_entry { my $myconfig = shift; my $update_existing = shift; + if (!does_table_exist($dbh, 'employee')) { + $main::lxdebug->leave_sub(); + return; + } + # add login to employee table if it does not exist # no error check for employee table, ignore if it does not exist my ($id) = selectrow_query($form, $dbh, qq|SELECT id FROM employee WHERE login = ?|, $self->{login});