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
|
<?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>
|
||||||
|
|
Loading…
Reference in a new issue