summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-25 13:38:20 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-25 13:38:20 +0000
commit403df0a96a21e16a1515fb50c548454ee9090cfa (patch)
treeaa961b0ab6816aa5140191e1f504be04f5be3581
parent119bdfcb4ab55c942d8dee1763ca182a085c9031 (diff)
downloadcontrol-center-403df0a96a21e16a1515fb50c548454ee9090cfa.tar
control-center-403df0a96a21e16a1515fb50c548454ee9090cfa.tar.gz
control-center-403df0a96a21e16a1515fb50c548454ee9090cfa.tar.bz2
control-center-403df0a96a21e16a1515fb50c548454ee9090cfa.tar.xz
control-center-403df0a96a21e16a1515fb50c548454ee9090cfa.zip
(build_list) prevent empty links to appear (side effect of fcrozat's
fix (r246647 from 2008-09-25): "(build_list) make icon+text act as a single item for links (fcrozat)"
-rwxr-xr-xcontrol-center2
1 files changed, 1 insertions, 1 deletions
diff --git a/control-center b/control-center
index 4fa51d37..16cc4c1c 100755
--- a/control-center
+++ b/control-center
@@ -882,7 +882,7 @@ foreach (@tree) {
map {
"<TR>" . join("\n", grep { defined $_ } @$_) . "</TR>" }
# "<TR>" . join("\n<TD> </TD>\n", grep { defined $_ } @$_) . "</TR>" }
- group_by(2, map { build_widget_element($_) } @{$subtree->{list}})
+ group_by(2, map { $_ ? build_widget_element($_) : '' } @{$subtree->{list}})
);
$string .= "</TABLE>\n";