Privacy: GDPR fields titles in Terms and Conditons should be invisbile

if there is no content - ref #3437
pull/3439/head
carlos alvarado 5 years ago
parent 4bd6911c88
commit cd5b56668f
  1. 4
      main/auth/inscription.php

@ -465,7 +465,9 @@ if (api_get_setting('allow_terms_conditions') === 'true') {
$termExtraFields = new ExtraFieldValue('terms_and_condition');
$values = $termExtraFields->getAllValuesByItem($term_preview['id']);
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 {
echo get_lang('ComingSoon');

Loading…
Cancel
Save