summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-18 14:04:35 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-18 14:04:35 +0000
commit446650081d9dff29c55e209e4446ea51ff47a13d (patch)
treec3e4e0d34096c5f0e5f44fa47fdc1676bd60f465 /roundcubemail/program/steps
parent141dd9aa34dbf1c6a0556724ce3fefaacef24b4d (diff)
- Revert r5345 to handle non-array content too
git-svn-id: https://svn.roundcube.net/trunk@5346 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/addressbook/func.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc
index fa9ff1c66..6dc33a077 100644
--- a/roundcubemail/program/steps/addressbook/func.inc
+++ b/roundcubemail/program/steps/addressbook/func.inc
@@ -662,7 +662,7 @@ function rcmail_contact_form($form, $record, $attrib = null)
$rows);
}
- if (empty($content))
+ if (!$content)
continue;
// also render add-field selector
@@ -675,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) {