Merge pull request #3439 from carlangas159/3437

GDPR fields titles in Terms and Conditons should be invisbile if there is no content
pull/3446/head
Nicolas Ducoulombier 5 years ago committed by GitHub
commit 9c8e16b7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      main/auth/inscription.php

@ -465,7 +465,9 @@ if (api_get_setting('allow_terms_conditions') === 'true') {
$termExtraFields = new ExtraFieldValue('terms_and_condition'); $termExtraFields = new ExtraFieldValue('terms_and_condition');
$values = $termExtraFields->getAllValuesByItem($term_preview['id']); $values = $termExtraFields->getAllValuesByItem($term_preview['id']);
foreach ($values as $value) { foreach ($values as $value) {
echo '<h3>'.$value['display_text'].'</h3><br />'.$value['value'].'<br />'; if (!empty($value['value'])) {
echo '<h3>'.$value['display_text'].'</h3><br />'.$value['value'].'<br />';
}
} }
} else { } else {
echo get_lang('ComingSoon'); echo get_lang('ComingSoon');

Loading…
Cancel
Save