summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-18 13:58:18 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-18 13:58:18 +0000
commita98ca5d09e19d926b796e587732d81d048a76473 (patch)
tree6d5edbffe40650157d14dca314131ded27bd6dc7 /roundcubemail/program/steps
parent1e2c8ec61e4276bf0cb3a074f05bfdff2511c084 (diff)
- Hide contact tabs with no content
git-svn-id: https://svn.roundcube.net/trunk@5344 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/addressbook/func.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc
index fc559e6ae..0b045c9fd 100644
--- a/roundcubemail/program/steps/addressbook/func.inc
+++ b/roundcubemail/program/steps/addressbook/func.inc
@@ -662,6 +662,9 @@ function rcmail_contact_form($form, $record, $attrib = null)
$rows);
}
+ if (empty($content))
+ continue;
+
// also render add-field selector
if ($edit_mode)
$content .= html::p('addfield', $select_add->show(null, array('style' => $select_add->_count ? null : 'display:none')));
@@ -672,7 +675,8 @@ function rcmail_contact_form($form, $record, $attrib = null)
$content = $fieldset['content'];
}
- $out .= html::tag('fieldset', null, html::tag('legend', null, Q($fieldset['name'])) . $content) ."\n";
+ if ($content)
+ $out .= html::tag('fieldset', null, html::tag('legend', null, Q($fieldset['name'])) . $content) ."\n";
}
if ($edit_mode) {