mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Don't show empty description
This commit is contained in:
@@ -117,8 +117,9 @@ if (&include_style(\@pams) == 3) {
|
||||
"incs", @incs ? 1 : 0);
|
||||
@grid = ( );
|
||||
foreach $p (sort { $a->{'name'} cmp $b->{'name'} } @pams) {
|
||||
$desc = $p->{'name'}." ".
|
||||
($p->{'desc'} || $text{'desc_'.$p->{'name'}});
|
||||
$desc = $p->{'name'};
|
||||
$dstr = $p->{'desc'} || $text{'desc_'.$p->{'name'}};
|
||||
$desc .= " ($dstr)" if ($dstr);
|
||||
push(@grid, &ui_checkbox("inc", $p->{'name'}, $desc,
|
||||
$inced{$p->{'name'}}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user