Revision 9580d23a
Von Sven Schöling vor fast 9 Jahren hinzugefügt
SL/DB/Helper/Sorted.pm | ||
---|---|---|
16 | 16 |
my $sort_dir = defined($params{sort_dir}) ? $params{sort_dir} * 1 : $sort_spec->{default}->[1]; |
17 | 17 |
my $sort_dir_str = $sort_dir ? 'ASC' : 'DESC'; |
18 | 18 |
|
19 |
my $sort_by = $params{sort_by}; |
|
19 |
my $sort_by = $params{sort_by} || { };
|
|
20 | 20 |
$sort_by = $sort_spec->{default}->[0] unless $sort_spec->{columns}->{$sort_by}; |
21 | 21 |
|
22 | 22 |
my $nulls_str = ''; |
Auch abrufbar als: Unified diff
warnings: nicht initialisierte Variable in Helper/Sorted