From: Sven Schöling Date: Tue, 22 Mar 2016 12:01:33 +0000 (+0100) Subject: warnings: nicht initialisierte Variable in Helper/Sorted X-Git-Tag: release-3.4.1~296 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9580d23a70c83f5538fa4cc127f0f27b5d818212;p=kivitendo-erp.git warnings: nicht initialisierte Variable in Helper/Sorted --- 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 = '';