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. 2
      main/auth/inscription.php

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

Loading…
Cancel
Save