diff options
author | alecpl <alec@alec.pl> | 2011-10-19 11:35:49 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-10-19 11:35:49 +0000 |
commit | 7772ae2477c079af0e80ce5a91dde97139e3fb5a (patch) | |
tree | 93a533bc68e53f7894bd64ce1dd0739a0b0dc2ef /program | |
parent | c041d57036d4a30730408c8fbba2d4e12778d2d5 (diff) |
- Another fix to hide empty tabs
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/addressbook/func.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 6dc33a077..2082dbd1f 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -657,9 +657,11 @@ function rcmail_contact_form($form, $record, $attrib = null) } // wrap rows in fieldgroup container - $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')), - ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') . - $rows); + if ($rows) { + $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')), + ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') . + $rows); + } } if (!$content) |