Revision 74fca575
Von Sven Schöling vor etwa 13 Jahren hinzugefügt
SL/Projects.pm | ||
---|---|---|
104 | 104 |
} |
105 | 105 |
|
106 | 106 |
|
107 |
my $where = 'WHERE ' . join(' AND ', map { "($_)" } @filters) if (scalar @filters);
|
|
107 |
my $where = @filters ? 'WHERE ' . join(' AND ', map { "($_)" } @filters) : '';
|
|
108 | 108 |
|
109 | 109 |
my $sortorder = $params{sort} ? $params{sort} : "projectnumber"; |
110 | 110 |
$sortorder =~ s/[^a-z_]//g; |
Auch abrufbar als: Unified diff
Fixes für das "my $var if $cond;" pattern.