diff options
| -rw-r--r-- | app/Http/Controllers/AdminController.php | 2 | ||||
| -rw-r--r-- | resources/views/admin/trees-privacy.phtml | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index 3ade6f32f1..79d73821fa 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -1509,6 +1509,8 @@ class AdminController extends AbstractBaseController if ($restriction->tag_type) { $restriction->tag_label = GedcomTag::getLabel($restriction->tag_type); + } else { + $restriction->tag_label = ''; } } diff --git a/resources/views/admin/trees-privacy.phtml b/resources/views/admin/trees-privacy.phtml index e9ef138ca2..081a51bb89 100644 --- a/resources/views/admin/trees-privacy.phtml +++ b/resources/views/admin/trees-privacy.phtml @@ -244,12 +244,12 @@ <?php endif ?> </td> <td> - <?php if ($privacy_restriction->tag_label) : ?> - <?= $privacy_restriction->tag_label ?> - <?php else : ?> + <?php if ($privacy_restriction->tag_label === '') : ?> <div class="text-muted"> <?= I18N::translate('All facts and events') ?> </div> + <?php else : ?> + <?= $privacy_restriction->tag_label ?> <?php endif ?> </td> <td> |
