From af16cfe65e669bd9ab1535c9ef6639753cfae7d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 19 Sep 2011 17:32:53 +0200 Subject: [PATCH] $::all_units nicht in MoreCommon benutzen. --- SL/MoreCommon.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/MoreCommon.pm b/SL/MoreCommon.pm index ded6ddf32..bb31f2def 100644 --- a/SL/MoreCommon.pm +++ b/SL/MoreCommon.pm @@ -61,8 +61,7 @@ sub compare_numbers { my ($a, $a_unit, $b, $b_unit) = @_; - $main::all_units ||= AM->retrieve_units(\%main::myconfig, $main::form); - my $units = $main::all_units; + my $units = AM->retrieve_all_units; if (!$units->{$a_unit} || !$units->{$b_unit} || ($units->{$a_unit}->{base_unit} ne $units->{$b_unit}->{base_unit})) { $main::lxdebug->leave_sub(); -- 2.20.1