reg/index: registration policy: display '∅' if empty
This commit is contained in:
parent
3ddbc7cf1a
commit
0c15676520
1 changed files with 9 additions and 3 deletions
|
@ -30,7 +30,9 @@ else {
|
|||
<?php
|
||||
foreach (CONF['reg']['suffixes'] as $suffix => $condition)
|
||||
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>
|
||||
</dd>
|
||||
|
@ -41,7 +43,9 @@ foreach (CONF['reg']['suffixes'] as $suffix => $condition)
|
|||
<?php
|
||||
foreach (CONF['reg']['suffixes'] as $suffix => $condition)
|
||||
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>
|
||||
</dd>
|
||||
|
@ -52,7 +56,9 @@ foreach (CONF['reg']['suffixes'] as $suffix => $condition)
|
|||
<?php
|
||||
foreach (CONF['reg']['suffixes'] as $suffix => $condition)
|
||||
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>
|
||||
</dd>
|
||||
|
|
Loading…
Reference in a new issue