reg/index: registration policy: display '∅' if empty

This commit is contained in:
Miraty 2023-07-16 21:08:49 +02:00
parent 3ddbc7cf1a
commit 0c15676520

View file

@ -30,7 +30,9 @@ else {
<?php <?php
foreach (CONF['reg']['suffixes'] as $suffix => $condition) foreach (CONF['reg']['suffixes'] as $suffix => $condition)
if ($condition === 'all') if ($condition === 'all')
echo '<li><code>' . $suffix . ' </code></li>'; echo '<li><code>' . $suffix . ' </code></li>' . LF;
if (!in_array('all', CONF['reg']['suffixes'], true))
echo '<li>∅</li>' . LF;
?> ?>
</ul> </ul>
</dd> </dd>
@ -41,7 +43,9 @@ foreach (CONF['reg']['suffixes'] as $suffix => $condition)
<?php <?php
foreach (CONF['reg']['suffixes'] as $suffix => $condition) foreach (CONF['reg']['suffixes'] as $suffix => $condition)
if ($condition === 'approved') if ($condition === 'approved')
echo '<li><code>' . $suffix . ' </code></li>'; echo '<li><code>' . $suffix . ' </code></li>' . LF;
if (!in_array('approved', CONF['reg']['suffixes'], true))
echo '<li>∅</li>' . LF;
?> ?>
</ul> </ul>
</dd> </dd>
@ -52,7 +56,9 @@ foreach (CONF['reg']['suffixes'] as $suffix => $condition)
<?php <?php
foreach (CONF['reg']['suffixes'] as $suffix => $condition) foreach (CONF['reg']['suffixes'] as $suffix => $condition)
if ($condition === 'none') if ($condition === 'none')
echo '<li><code>' . $suffix . ' </code></li>'; echo '<li><code>' . $suffix . ' </code></li>' . LF;
if (!in_array('none', CONF['reg']['suffixes'], true))
echo '<li>∅</li>' . LF;
?> ?>
</ul> </ul>
</dd> </dd>