summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-19 11:35:49 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-19 11:35:49 +0000
commite4c46b31c8ebbb0297634687d5658c32b40344ee (patch)
tree56c5a37d3c607fe8cdfb92639c634a6f9038d65d /roundcubemail/program
parent368e479a3d7ba4d4952ff83b996b86d743518e1f (diff)
- Another fix to hide empty tabs
git-svn-id: https://svn.roundcube.net/trunk@5350 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/addressbook/func.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc
index 6dc33a077..2082dbd1f 100644
--- a/roundcubemail/program/steps/addressbook/func.inc
+++ b/roundcubemail/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)