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