X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FIC.pm;h=7fca30609a778941bab378bb4bd0e17e82c1b98a;hb=ddc3bbb167d3010b0058efa8f90936d15be76c2e;hp=8988e1091186e71259094900571989fa755c7d12;hpb=0c7cc1e4c66eb941e8a7c35f79df0b91d5f2a303;p=kivitendo-erp.git diff --git a/SL/IC.pm b/SL/IC.pm index 8988e1091..7fca30609 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -1819,7 +1819,7 @@ sub retrieve_accounts { if (!$ref) { $dbh->disconnect(); - return $lxdebug->leave_sub(); + return $main::lxdebug->leave_sub(); } $ref->{"inventory_accno_id"} = undef unless ($ref->{"is_part"}); @@ -1853,7 +1853,7 @@ sub retrieve_accounts { $ref = $sth->fetchrow_hashref(); $sth->finish(); $dbh->disconnect(); - + unless ($ref) { $main::lxdebug->leave_sub(); return; @@ -1872,8 +1872,6 @@ sub retrieve_accounts { # " || taxaccounts_$index " . $form->{"taxaccounts_$index"} . # " || taxaccounts " . $form->{"taxaccounts"}); - $sth->finish(); - $main::lxdebug->leave_sub(); } 1;