From 0c15676520031bf8aea91ca87e576267f5ef56c1 Mon Sep 17 00:00:00 2001 From: Miraty Date: Sun, 16 Jul 2023 21:08:49 +0200 Subject: [PATCH] =?UTF-8?q?reg/index:=20registration=20policy:=20display?= =?UTF-8?q?=20'=E2=88=85'=20if=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pg-view/reg/index.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pg-view/reg/index.php b/pg-view/reg/index.php index 073d259..a00b7db 100644 --- a/pg-view/reg/index.php +++ b/pg-view/reg/index.php @@ -30,7 +30,9 @@ else { $condition) if ($condition === 'all') - echo '
  • ' . $suffix . '
  • '; + echo '
  • ' . $suffix . '
  • ' . LF; +if (!in_array('all', CONF['reg']['suffixes'], true)) + echo '
  • ' . LF; ?> @@ -41,7 +43,9 @@ foreach (CONF['reg']['suffixes'] as $suffix => $condition) $condition) if ($condition === 'approved') - echo '
  • ' . $suffix . '
  • '; + echo '
  • ' . $suffix . '
  • ' . LF; +if (!in_array('approved', CONF['reg']['suffixes'], true)) + echo '
  • ' . LF; ?> @@ -52,7 +56,9 @@ foreach (CONF['reg']['suffixes'] as $suffix => $condition) $condition) if ($condition === 'none') - echo '
  • ' . $suffix . '
  • '; + echo '
  • ' . $suffix . '
  • ' . LF; +if (!in_array('none', CONF['reg']['suffixes'], true)) + echo '
  • ' . LF; ?>