X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c14aab2d0918eb56f1c91bca8da6b1984d5e09ec..e1cb00366d40cc3a1b07e065b51ad39c84baf7e6:/SL/AM.pm diff --git a/SL/AM.pm b/SL/AM.pm index 7b3b7368a..6c0ea0b42 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -1515,7 +1515,7 @@ sub save_preferences { $form->{businessnumber} = $businessnumber; - my $myconfig = new User($form->{login}); + $myconfig = new User($form->{login}); foreach my $item (keys %$form) { $myconfig->{$item} = $form->{$item}; @@ -1935,9 +1935,10 @@ sub convert_unit { $main::lxdebug->enter_sub(2); ($this, $a, $b, $all_units) = @_; + $main::lxdebug->leave_sub(2) and return 0 unless $a && $b; $main::lxdebug->leave_sub(2) and return 0 unless $all_units->{$a} && $all_units->{$b}; $main::lxdebug->leave_sub(2) and return 0 unless $all_units->{$a}{base_unit} eq $all_units->{$b}{base_unit}; - $main::lxdebug->leave_sub(2) and return $all_units->{$a}{factor} / $all_units->{$b}{factor}; + $main::lxdebug->leave_sub(2) and return $all_units->{$a}{factor} / $all_units->{$b}{factor}; } sub unit_select_data {