People at home section Fix
This commit is contained in:
parent
4a87204e16
commit
97e955d382
@ -36,12 +36,10 @@
|
|||||||
<div class="label m-1">
|
<div class="label m-1">
|
||||||
doma jsou:
|
doma jsou:
|
||||||
<?php
|
<?php
|
||||||
|
$keyWords = ['entered', 'connected', 'connected to'];
|
||||||
foreach ($USERS as $user) {
|
foreach ($USERS as $user) {
|
||||||
if (trim($user['at_home']) === "entered") {
|
if (in_array(trim($user['at_home']), $keyWords)) {
|
||||||
echo $user['username'];
|
echo $user['username'] . ' ';
|
||||||
}
|
|
||||||
if (trim($user['at_home']) === "connected to") {
|
|
||||||
echo $user['username'];
|
|
||||||
}
|
}
|
||||||
} ?>
|
} ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user