From 9580d23a70c83f5538fa4cc127f0f27b5d818212 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 22 Mar 2016 13:01:33 +0100 Subject: [PATCH] warnings: nicht initialisierte Variable in Helper/Sorted --- SL/DB/Helper/Sorted.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Helper/Sorted.pm b/SL/DB/Helper/Sorted.pm index 7d1b406e1..69b105f96 100644 --- a/SL/DB/Helper/Sorted.pm +++ b/SL/DB/Helper/Sorted.pm @@ -16,7 +16,7 @@ sub make_sort_string { my $sort_dir = defined($params{sort_dir}) ? $params{sort_dir} * 1 : $sort_spec->{default}->[1]; my $sort_dir_str = $sort_dir ? 'ASC' : 'DESC'; - my $sort_by = $params{sort_by}; + my $sort_by = $params{sort_by} || { }; $sort_by = $sort_spec->{default}->[0] unless $sort_spec->{columns}->{$sort_by}; my $nulls_str = ''; -- 2.20.1