X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/32147d43441f0a99e6e320f6aaeb6b68e766264f..c8c960bcc06f833933bd3cce3d4aabe68b15fd75:/SL/User.pm 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});