Skip to content

Commit 9c8e16b

Browse files
authored
Merge pull request #3439 from carlangas159/3437
GDPR fields titles in Terms and Conditons should be invisbile if there is no content
2 parents 97f3517 + cd5b566 commit 9c8e16b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/auth/inscription.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@
465465
$termExtraFields = new ExtraFieldValue('terms_and_condition');
466466
$values = $termExtraFields->getAllValuesByItem($term_preview['id']);
467467
foreach ($values as $value) {
468-
echo '<h3>'.$value['display_text'].'</h3><br />'.$value['value'].'<br />';
468+
if (!empty($value['value'])) {
469+
echo '<h3>'.$value['display_text'].'</h3><br />'.$value['value'].'<br />';
470+
}
469471
}
470472
} else {
471473
echo get_lang('ComingSoon');

0 commit comments

Comments
 (0)