summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-10-18 14:04:35 +0000
committeralecpl <alec@alec.pl>2011-10-18 14:04:35 +0000
commit01169b6d5626d5a5bef20e43d86a5605a66ccdf0 (patch)
tree31af26d8d058cd52063dff0e8b7d7a4d057cb88e
parent4100242b93ff371daf2ff8ebfccbd5038d5f4809 (diff)
- Revert r5345 to handle non-array content too
-rw-r--r--program/steps/addressbook/func.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index fa9ff1c66..6dc33a077 100644
--- a/program/steps/addressbook/func.inc
+++ b/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) {