People at home section Fix

This commit is contained in:
JonatanRek 2019-08-23 23:25:08 +02:00
parent 4a87204e16
commit 97e955d382

View File

@ -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>